• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer
Genesis Theme Framework a2z

Genesis Theme Framework a2z

WordPress Dynamic API Reference

  • Home
  • Plugins
  • Shortcodes
  • APIs
  • Classes
  • Files
  • Hooks
  • Sitemap
  • Blog
Home / Parsed Source / Parsed: 51067
function _genesis_register_default_widget_areas_cb() {

  global $wp_registered_sidebars;

  if ( isset( $wp_registered_sidebars['header-right'] ) ) {
    genesis_register_widget_area(
      [
        'id'               => 'header-right',
        'name'             => is_rtl() ? __( 'Header Left', 'genesis' ) : __( 'Header Right', 'genesis' ),
        'description'      => __( 'This is the header widget area. It typically appears next to the site title or logo. This widget area is not suitable to display every type of widget, and works best with a custom menu, a search form, or possibly a text widget.', 'genesis' ),
        '_genesis_builtin' => true,
      ]
    );
  }

  if ( isset( $wp_registered_sidebars['sidebar'] ) ) {
    genesis_register_widget_area(
      [
        'id'               => 'sidebar',
        'name'             => __( 'Primary Sidebar', 'genesis' ),
        'description'      => __( 'This is the primary sidebar if you are using a two or three column site layout option.', 'genesis' ),
        '_genesis_builtin' => true,
      ]
    );
  }

  if ( isset( $wp_registered_sidebars['sidebar-alt'] ) ) {
    genesis_register_widget_area(
      [
        'id'               => 'sidebar-alt',
        'name'             => __( 'Secondary Sidebar', 'genesis' ),
        'description'      => __( 'This is the secondary sidebar if you are using a three column site layout option.', 'genesis' ),
        '_genesis_builtin' => true,
      ]
    );
  }

}
 

Published: 25th November 2019 | Last updated: 25th November 2019

Primary Sidebar

Information

Source ref: _genesis_register_default_widget_areas_cb() – Register the default Genesis widget areas, if the placeholder widget areas are still registered.
Parse count / Source file date: 1569839049
MD5 hash: 4cdef71206c3c6f6de29cdfb6abf95a1

Footer

Genesis a2z
Genesis Theme Framework a2z
WordPress Dynamic API Reference
WordPress 5.9.3
WordPress a2z
WordPress core a2z
Genesis Theme Framework a2z
Jetpack a2z
WordPress develop tests
Easy Digital Downloads a2z
WooCommerce a2z
Yoast SEO a2z
WordPress Blocks

Site:  genesis.wp-a2z.org
© Copyright Genesis a2z 2014-2022. All rights reserved.


Website designed and developed by Herb Miller
Proudly powered by WordPress and oik plugins

  • Home
  • Blog
  • Sitemap
  • Sites