Forum Replies Created

Viewing 1 replies (of 1 total)
  • Thread Starter kevinknapp49

    (@kevinknapp49)

    I ended up having to create a widget area.
    This is in my Theme Functions.

    /**
     * Register Widget Area.
     *
     */
    function search_widget_init() {
    
    	register_sidebar( array(
    		'name' => 'Google Search',
    		'id' => 'google-search',
    	) );
    }
    add_action( 'widgets_init', 'search_widget_init' );

    And this is in my header.

    <div id="search" class="col-lg-2 col-md-2 column">
    	<?php if ( is_active_sidebar( 'google-search' ) ) : ?>
    		<?php dynamic_sidebar( 'google-search' ); ?>
    	<?php endif; ?>
    </div>
Viewing 1 replies (of 1 total)