Site logo

Archived topic

mobile search coming up empty

4 replies · Started by David on September 7, 2018

Viewing posts 1–5 of 5

mobile search returns no results, desktop returns results. It used to work but now it doesn't.

Okay, I found the culprit plugin (and definitely not the one I expected). Yoast Local SEO. What is super weird is that the desktop search was working and not mobile, then neither. It's not playing nice with the Yoast. It is unfortunate, because this happens to be a paid premium plug in.

I'm going to reach out to Yoast on the matter, but I'm not sure we should mark this as resolved just yet.

This is what they gave me. I'm not a developer. I understand how WP works, but we are just a local Mom and Pop business.

Any ideas?

This guide is written for advanced users and developers.
One of the hidden features of Yoast SEO: Local is enhancing your website's internal search results with your location content. In rare cases, the enhanced search results can conflict with other plugin or theme features. Therefore, Yoast SEO: Local version 7.1 introduced developer filters to disable these enhancements.

Developer code
The filters accept a true or false boolean.
yoast_local_seo_enhanced_search_enabled
yoast_local_seo_enhanced_search_result_enabled

To disable searching in location meta fields use:
add_filter( 'yoast_local_seo_enhanced_search_enabled', '__return_false' );

To also disable markup for found locations use:
add_filter( 'yoast_local_seo_enhanced_search_result_enabled', '__return_false' );

Sorry I'm not familiar with Yoast Local SEO. Is it not the same as Yoast SEO?

Perhaps asking their support for more clarification since those are all their filters?

Let me know what they say :)

This archived topic is closed to new replies.