Archived topic
dsIDXpress and Element
18 replies · Started by Gerik on February 1, 2021
Hello! I added an element that says all IDX Pages (created by the plugin dsIDXpress) to be fullwidth and no sidebars. It look like it's not doing anything to those pages.
Hi there,
I only see one IDX page currently:
https://www.screencast.com/t/SFOR1hfYIOTc
And on this page, there isn't a sidebar and the header isn't showing:
https://www.screencast.com/t/SFOR1hfYIOTc
Are you wanting to disable the blue bar as well? If so try disabling the primary navigation.
you're right that is so weird, it wasn't working earlier. I'll keep going.
I did click Purge SG cache when I logged in so maybe that's the issue :)
Yeah but it's not full width
Hi there,
Have you resolved this already? I'm unable to re-check the site as any information provided on the private information text field is automatically deleted when the topic is marked resolved.
Let us know.
okay entered the user:pass
I have a feeling that their custom post type has something weird going on. The body classes for your IDX listing says it's a page using a page template when it should be a single custom post type entry.
Can I install the Query Monitor plugin to take a quick look at what conditions that page has?
yes
So, WordPress thinks the single posts are "pages", so something strange is going on with the query itself. I'm not familiar with the plugin, so I'm not sure what they're doing internally.
The only way for me to know would be to dig into the code and add debug code along the way until I find the point of failure. Is this a plugin I can set up successfully on my developer server, or is it something that has to be configured on your end?
It's all dummy data. I enter credentials in the private information.
Perfect, thanks!
It seems like they're altering the query which is interfering with how Elements are queried.
You should be able to fix it like this:
add_filter( 'generate_elements_custom_args', function( $args ) {
$args['suppress_filters'] = true;
return $args;
} );
Let me know :)
Thanks, how and where do I add that? I'm assuming to functions? I added it and nothing happened.
You can add it using one of these methods: https://docs.generatepress.com/article/adding-php/
It worked! Definitely for this page: https://www.thenwaagent.com/idx/listings/search/
Any thoughts on the auto-generated ones like
https://www.thenwaagent.com/idx/
https://www.thenwaagent.com/idx/mls-8558181-8181_sunny_st_huntington_beach_ca_92649