Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #893519

    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)

    #894100

    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

    #894605

    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?

    #895104

    Hi,

    The filter should work. Please post the login details in the private field so that we can check the products and do a few tests.

    Best regards,
    Ismael

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.