Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • #12756

    Hi !

    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.

    Please help



    Hi SA,

    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.



Viewing 2 posts - 1 through 2 (of 2 total)

The topic ‘Different Sidebar for search results page’ is closed to new replies.