• Resolved luz71

    (@luz71)


    Good evening,
    I installed relevanssi because I have a problem with searches in the Woocommerce part of the site.
    Basically if I in the site (not in the store) do a search like Necklace, it shows me the results but I also see all the HTML tags. After installing the plugin the thing has improved, but still remains a part of code and, despite my research, I do not know how to remove it.
    This is what you see (https://mathyldis.testdlcom.com/?s=Collana)

    Collana Pendente in Oro Bianco Wall Street
    <span class="excerpt_part"><strong>Collana</strong> pendente in oro bianco Wall Street, un gioiello dalla personalità unica La <strong>Collana</strong> pendente Wall Street, placcata in oro bianco 18 k, richiama il design di una moneta…

    What can I do? The theme is Sahel by Qodeinteractive.

    Thanks a lot for the help.

    • This topic was modified 4 years, 10 months ago by luz71.

    The page I need help with: [log in to see the link]

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Mikko Saari

    (@msaari)

    That’s a problem with your theme. It’s escaping the HTML tags in the excerpts, when it should just print out the excerpt as is.

    I would recommend contacting the theme support, since it’s a premium theme.

    If you can show me the theme search results template, I can take a look and see if there’s something wrong there.

    Thread Starter luz71

    (@luz71)

    Hello Mikko,
    thank you very much for your reply, unfortunately the theme support was never very helpful..
    I attach the theme search results template.
    Thank you.

    <?php
    $eltdf_search_holder_params = sahel_elated_get_holder_params_search();
    ?>
    <?php get_header(); ?>
    <?php sahel_elated_get_title(); ?>
    <?php do_action('sahel_elated_action_before_main_content'); ?>
    	<div class="<?php echo esc_attr( $eltdf_search_holder_params['holder'] ); ?>">
    		<?php do_action( 'sahel_elated_action_after_container_open' ); ?>
    		<div class="<?php echo esc_attr( $eltdf_search_holder_params['inner'] ); ?>">
    			<?php sahel_elated_get_search_page(); ?>
    		</div>
    		<?php do_action( 'sahel_elated_action_before_container_close' ); ?>
    	</div>
    <?php get_footer(); ?>
    Plugin Author Mikko Saari

    (@msaari)

    That code is unfortunately not helpful either. Printing out the content happens somewhere inside sahel_elated_get_search_page(), but I have no idea where to dig deeper for that.

    I would generally recommend against using themes that deviate so wildly from regular WP templating standards, especially if the theme support is not useful – it’s very hard for third parties to help with themes that do templates in complicated ways like this.

    With a more standards-compliant theme, it would be easier to help you – now I’m afraid I can’t really help you with this. Relevanssi is working as it should, but your theme is not.

    Thread Starter luz71

    (@luz71)

    Mikko,
    thank you very much for your help, I will see how to remedy this issue.

    Plugin Author Mikko Saari

    (@msaari)

    The solution from Relevanssi’s point of view is simple: all the theme needs to do is to use the_excerpt() to print out the excerpt.

    Thread Starter luz71

    (@luz71)

    I’ll see with theme support if they can fix this issue for me at least.

    Thanks again

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

The topic ‘HTML tag in product’s excerpt’ is closed to new replies.