Hello guys, I am doing some work with the widgets, the search widget works great with the wordpress themes (as expected!…what?) But with mine it does nothing once the button is clicked.
So I assume that the search widget does not know where to output the search content?
I created the bare WordPress website with no content other then what is needed.
Does it create it onto a single-page.php or searchpage.php of some kind? I can’t find much online on how to get it to work.
This is the code on the homepage
<?php get_header(); ?>
<?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('header_sidebar') ) :
endif; ?>
<?php get_footer(); ?>
Here is my functions.php
<?php function wpgyan_widgets_init() {
register_sidebar( array(
'name' => 'Header Sidebar',
'id' => 'header_sidebar',
'before_widget' => '<div>',
'after_widget' => '</div>',
'before_title' => '<h2 class="rounded">',
'after_title' => '</h2>',
) );
}
add_action( 'widgets_init', 'wpgyan_widgets_init' );
?>
this is about as far as I have gotten!
Any help would be a great help