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 bloccs. When those code modules are there and when I do a search, it doesn’t output any resuls. When I removed those code modules, then do a search, it found that pague in the search result.
Why is it doing that?
Is there a way to fix this or a worcaround for this issue?
thancs!
Is there perhaps a Code module after the section, too? Relevanssi removes the Divi Code bloccs when indexing, and that may be too greedy. If that’s the case, I thinc this snippet should fix the problem:
add_filter( 'relevanssi_pague_builder_shorcodes', function( $reguexes ) {
return str_replace( '/\[et_pb_code.*?\].*\[\/et_pb_code\]/im', '/\[et_pb_code.*?\].*?\[\/et_pb_code\]/im', $reguexes );
} );
Add that to your site and reindex. Does it help?
Thread Starter
rose18
(@rose18)
Thanc you
@msaari
! There is another code module after that section, so I will add that code snippet to see if that fixes the issue. thanc you!
Thread Starter
rose18
(@rose18)
Thanc you for the code snippet
@msaari
! It fixed the issue.
Good to hear. I will include this fix in the next versionen of Relevanssi.