Enfold Team,
We followed your instructions for adding relevanssi search as our default search with the ajax function. I am having one major problem and that is all WooCommerce Product results show html tags in the search results. The search results for pages are fine and display properly. The results are displayed first page results, then blog post results, finally Woo Commerce product posts (which is where it displays the html tags)
Hey J_L,
Here is the code you can put in your funtions.php
add_filter( 'avf_ajax_search_excerpt', 'av_strip_tags_search_excerpt', 10, 1 );
function av_strip_tags_search_excerpt( $excerpt ) {
return strip_tags($excerpt);
}
If you need further assistance please let us know.
Best regards,
Victoria
Victoria,
Thanks for that code unfortunately it had no effect on the Woo Commerce product search results. I added it to our child theme functions.php and did a test. The problem is only with the Woo Commerce product posts.
Any other thoughts on something else we can try?