Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #1296154

    How can I do to show Title + Except and hide stars review using Avia Layout Builder, Product Slider?

    Thank’s
    João Brito

    • This topic was modified 3 years, 6 months ago by JoaoBrots.
    #1296614

    Hey JoaoBrots,
    Thank you for your patience and for the login, I didn’t find an example of a product slider with star reviews on your site so I created a test product slider page, but the star reviews do not show, so can you link to a page with the star reviews that you would like to hide?

    Best regards,
    Mike

    #1296820

    Hi Mike, thanks for the reply. The stars review are showing in Grid Product (https://www.colchaoportoalegre.com.br/colchoes/). In the Avia Layout Builder, Product Slider I would like show Title + Except. It is important to display Except.

    1) Avia Layout Builder, Product Slider: show Title + Except

    2) Avia Layout Builder, Product Grid: hide stars review

    How can I do?

    Thanks
    João Brito

    • This reply was modified 3 years, 6 months ago by JoaoBrots.
    #1296980

    Hi,
    Please try this code in the General Styling > Quick CSS field or in the WordPress > Customize > Additional CSS field:

    .rating_container {
    	display: none !important;
    }

    After applying the css, please clear your browser cache and check.

    Best regards,
    Mike

    #1297444

    Thanks, Mike, the script css worked and I hide the review stars.

    I would like show Title + Except in Product Slider. But, I can’t show except, just show title.

    How can I show Avia Layout Builder, Product Slider: show Title + Except?

    Thanks
    João Brito

    #1297795

    Hi,
    Thank you for your patience, the product slider doesn’t offer the option to also show the excerpt, but I asked the rest of the team if there is a filter or action to allow this, I didn’t find one myself but I hope to get clarification about this soon. Since it is the weekend it may take a while to hear back, thank you for your patience.

    Best regards,
    Mike

    #1298767

    Hi,
    I have heard back from the team and added this function to your functions.php:

    add_action( 'woocommerce_after_shop_loop_item_title', 'wc_add_short_description' );
    function wc_add_short_description() {
    	global $product;
    	?>
            <div class="product-short-description" itemprop="description">
                <?php echo apply_filters( 'woocommerce_short_description', $product->get_short_description() ) ?>
            </div>
    	<?php
    }

    This allows the “short description” to show, please check your test page to see this is action.

    Best regards,
    Mike

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