artemsemkin

Untitled

Mar 4th, 2021
714
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. add_action( 'widgets_init', 'custom_register_widget_areas' );
  2. function custom_register_widget_areas() {
  3.   register_sidebar(
  4.     array(
  5.       'name'          => esc_html__( 'Fullscreen Menu Widgets', 'rubenz' ),
  6.       'id'            => 'header-sidebar',
  7.       'description'   => esc_html__( 'Appears on desktop in the page header if menu type is set to "fullscreen".', 'rubenz' ),
  8.       'before_widget' => '<div class="header__wrapper-property"><div class="figure-property"><div class="widget widget_%2$s split-text">',
  9.       'after_widget'  => '</div></div></div>',
  10.       'before_title'  => '<div class="figure-property__wrapper-heading"><h6 class="widgettitle split-text">',
  11.       'after_title'   => '</h6></div>',
  12.     )
  13.   );
  14. }
RAW Paste Data