• I have a child theme and am adding a new sidebar using the following code:

    if (function_exists('register_sidebar')) {
    	register_sidebar( array(
    		'name' => __( 'Header Area', 'mantra' ),
    		'id' => 'header-widget-area',
    		'description' => __( 'top call out', 'mantra' ),
    		'before_widget' => '<li id="%1$s" class="widget-container %2$s">',
    		'after_widget' => '</li>',
    		'before_title' => '<h3 class="widget-title">',
    		'after_title' => '</h3>',
    	) );
    }

    I have inserted it into my header file like so:
    <?php get_sidebar( 'header-widget-area' );?>

    Clearly I’ve done this incorrectly but I just am not seeing it. Any help you can give me to wrap this up would be HUGE! Thank you!!!

Viewing 1 replies (of 1 total)
  • Theme Author CryoutCreations

    (@cryout-creations)

    Adding content to the header area is not the easiest task.
    Your extra widget area might appear under the existing header content. I’d need to see your site to suggest any solutions.

Viewing 1 replies (of 1 total)
  • The topic ‘New Sidebar in Child’ is closed to new replies.