You add a search plugin to your Divi site. It finds content in Text modules. It ignores content in Heading modules. Users search for a headline and get no results. This is not a bug in your search plugin. It is how Divi stores heading content.
Why Divi Headings Are Invisible to Search
Divi stores heading text differently than regular content. Some search plugins do not index Divi modules correctly. They expect content in the standard WordPress content field. Divi stores everything in custom fields [citation:6].
The good news: this is fixable.
The Fix for Relevanssi Users
If you use Relevanssi (one of the best search plugins for Divi), add this code to your site:
add_filter( 'relevanssi_page_builder_shortcodes', function( $regexes ) {
return str_replace( '/[et_pb_code.*?].*?[/et_pb_code]/im', '/[et_pb_code.*?].*?[/et_pb_code]/im', $regexes );
} );
This fixes how Relevanssi processes Divi modules [citation:6].
After adding the code, re-index your site. Go to Relevanssi → Indexing → Build the index.
The Fix for Other Search Plugins
Most search plugins have a setting to “search page builder content.” Look for that option. If not available, you may need to switch to a plugin that explicitly supports Divi.
Plugins that work well with Divi:
- Relevanssi (with the code above)
- SearchWP (premium, supports Divi out of the box)
- Ivory Search (free, basic Divi support)
Manual Workaround
If you cannot fix the search plugin, duplicate important heading text in a Text module. Set the Text module to hidden. Search will find the text, but visitors will not see it. This is not elegant, but it works.