#63317 Excerpt doesn’t support HTML – how to “reactivate” ?

Landing Forums JupiterX WordPress Theme Excerpt doesn’t support HTML – how to “reactivate” ?

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • Apou Agraff

    Hello,

    i display some woocommerce products for a restaurant, and we want to display a description (no single page, a list of product, a button to add 2 cart, and that’s it!)

    We use excerpt to inform about the meal, but the HTML of the excerpt is not supported, i search for a while for a Filter or a Plugin (i try with Advanced Excerpt… no results at all)

    Do you have a solution ?

    Shop page: https://www.brasserie-oscar-mons.be/traiteur/ (this is the first product called: “Barbecue Thai”, others products don’t have description/excerpt)

    Thanks !

    Mohsin Al-Rabieai Support Team

    This is actually related to the Jet Woo Builder plugin. By default, it use to Trim the excerpt. If you need to avoid it, you would need to modify this file:

    wp-content/plugins/jet-woo-builder/templates/jet-woo-products/global/item-content.php

    just like the attached screenshot.

    So this file content would be:

    <?php
    /**
     * Loop item content
     */
    
    $excerpt = jet_woo_builder_template_functions()->get_product_excerpt();
    //$excerpt = jet_woo_builder_tools()->trim_text(
    //	$excerpt,
    //	$this->get_attr( 'excerpt_length' ),
    //	$this->get_attr( 'excerpt_trim_type' ),
    //	'...'
    //);
    
    if ( 'yes' !== $this->get_attr( 'show_excerpt' ) || null === $excerpt ) {
    	return;
    }
    ?>
    
    <div class="jet-woo-product-excerpt"><?php echo $excerpt; ?></div>

    Remember that on each plugin update, you need to apply this fix. Hope it helps 🙂

    Private
    Apou Agraff
    This reply has been marked as private.
Viewing 3 posts - 1 through 3 (of 3 total)
You must be logged in to reply to this topic. Login