• Resolved rose18

    (@rose18)


    Hi there,

    We are using the Divi theme and page builder to create pages.
    We installed the ‘Relevanssi – A Better Search’ plugin to enhanced the search functionality, however, it’s not picking up some text for pages using the Divi builder.
    On our news page, it’s using the Divi builder, we have added the text ‘Suliqpita’ in a Heading module and in a Text module, and when I do a search for ‘Suliqpita’, there were no results found.
    Why is that?

    thanks!

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter rose18

    (@rose18)

    Hi again,

    Just an update, I have sort of found the issue why it’s not finding that certain text.
    Above the section that has the text ‘Suliqpita’ , I have another section that contains 2 Code module blocks. When those code modules are there and when I do a search, it doesn’t output any results. When I removed those code modules, then do a search, it found that page in the search result.

    Why is it doing that?
    Is there a way to fix this or a workaround for this issue?

    thanks!

    Plugin Author Mikko Saari

    (@msaari)

    Is there perhaps a Code module after the section, too? Relevanssi removes the Divi Code blocks when indexing, and that may be too greedy. If that’s the case, I think this snippet should fix the problem:

    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 );
    } );

    Add that to your site and reindex. Does it help?

    Thread Starter rose18

    (@rose18)

    Thank you @msaari ! There is another code module after that section, so I will add that code snippet to see if that fixes the issue. thank you!

    Thread Starter rose18

    (@rose18)

    Thank you for the code snippet @msaari ! It fixed the issue.

    Plugin Author Mikko Saari

    (@msaari)

    Good to hear. I will include this fix in the next version of Relevanssi.

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Not finding text in Divi Theme heading module’ is closed to new replies.