Tagged: ,

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

    Hello I’m having an issue with IDX displaying sidebars properly. The only way I can get the sidebar to display with the IDX wrapper is to use the Displayed Everywhere widget. This is a problem because some pages need to not show that content. I’ve tried setting the wrapper page to show a custom widget but that doesn’t seem to work. Is it possible to disable the displayed everywhere on certain pages?

    #544719

    Hey Dunckley_Design!

    Does the IDX plugin have some kind of function for checking if it’s displaying an IDX post / page / etc? Something like is_page()?

    If so then you could add this to the bottom of your functions.php file.

    add_filter( 'avf_custom_sidebar', 'enfold_customization_search_sidebar' );
    function enfold_customization_search_sidebar( $custom_sidebar ) {
    	if ( is_search() ) { $custom_sidebar = 'Search'; }
    	return $custom_sidebar;
    }

    That specific code will check if it’s a search page and then change the sidebar to use a custom sidebar named “Search”. You can create the custom sidebars in Dashboard > Appearance > Widgets. If the IDX plugin has a similar check then you can switch it in there.

    Cheers!
    Elliott

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