Exclude where? In indexing, or in excerpts? What is the name of the shortcode you want to exclude?
Hi Mikko,
Ideally both, we don’t want the content to be indexed or shown in the excerpts.
The shortcode starts with et_pb_fullwidth_slider
If you add this to your theme functions.php and rebuild the index, does it fix the problem?
add_filter( 'relevanssi_page_builder_shortcodes', 'rlv_fullwidth_slider' );
function rlv_fullwidth_slider( $shortcodes ) {
array_unshift( $shortcodes, '/\[et_pb_fullwidth_slider.*?\].*\[\/et_pb_fullwidth_slider\]/' );
return $shortcodes;
}
If so, I can make this adjustment to Relevanssi Divi features in the next version. Currently Relevanssi will just remove the slider shortcode tags, but not the contents.
Hi Mikko,
No we’re still seeing the content on the search results.
Have you made the change outlined here to make Divi use Relevanssi excerpts? That is, are those excerpts generated by Relevanssi in the first place?