Do you have “Expand shortcodes in post content” checked in Relevanssi settings? I just tried this, and have no problems searching for content inside Avada shortcodes.
Yes, I do have it checked. I also did a few more tests and found out that your plugin seems to be allergic to [fullwidth] shortcode. At least all of the pages that cannot be found with Relevanssi start with this particular shortcode.
Weird, that’s the first shortcode I tested. It works like it should on my site. Which version of Avada are you running? I have Fusion Core 1.7.3 and Avada 3.8.4. Looking at the Fusion Core source code, the [fullwidth] shortcode is written exactly as it should be so that it’s Relevanssi compatible.
Does Relevanssi find those pages if you search for the title? Does the problem apply to any content at all inside a [fullwidth] shortcode?
I wrote a big reply with code snippets and all that jazz, but then did a very simple test and now I feel like an idiot.
The shortcodes have nothing to do with it, obviously. I’ve created a test page without using any, and it’s still unsearcheable. Which means that the search does work for posts, but not for pages.
I did “Erase and Rebuild”, it didn’t help. Is there an official way to reset the options?
Two possibilities: either the search is not indexing pages or the search is only searching posts.
Have you set Relevanssi to index pages? If you have, then the problem is in searching. Your site may be adding a hidden post_type parameter in the search, restricting the search to just posts. Can you find pages if you add &post_types=page in the search results page URL?
Interestingly, with post_types=page parameter it does work on pages. Where do I look next?
Avada has an option for this in the theme options. You’ve probably got that on the “show only posts” setting.
Tadaaa! Thank you Mikko, the issue is resolved.