Tagged: ,

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

    Hi, I need to display the “Shop Overview Page” sidebar on search results page or create a custom sidebar. Unfortunately, I found a topic but it seems to be slightly outdated as I am getting errors after performing the following options: https://kriesi.at/support/topic/search-php-search-results-page-sidebar/

    Can you please help with an up-to-date solution?

    #462778

    Hey catmac2204!

    If your using a child theme then add this to the functions.php file.

    add_filter( 'avf_custom_sidebar', 'enfold_customization_search_sidebar' );
    function enfold_customization_search_sidebar( $sidebar ) {
    	if ( is_search() ) {
    		$sidebar = "Shop Overview Page";
    	}
    	return $sidebar;
    }

    If not then add it to the bottom of the Enfold functions.php file.

    Best regards,
    Elliott

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.