When search made on my site, search results are showed with the sidebar of the Shop Overview page. But I want to display a different sidebar on search results page which I have created with the Custom Sidebar plugin.
You’ll need to open search.php in /wp-content/themes/propulsion/ then replace the following lines.
//get the sidebar
$avia_config['currently_viewing'] = 'page';
I’m not familiar with the Custom Sidebar plugin so you’ll need to see their FAQ or support for specific instructions on what to add. It may just be as simple as using this snippet of code. I’m not sure though.
<?php if ( !function_exists('dynamic_sidebar')
|| !dynamic_sidebar() ) : ?>
<?php endif; ?>
Hope this helps.
The topic ‘Different Sidebar for search results page’ is closed to new replies.