How to add html support for product category

This topic has 10 replies, 3 voices, and was last updated 2 years, 10 months ago ago by Olga Barlow

  • Avatar: andrey-4923
    Andrey
    Participant
    December 29, 2021 at 10:04

    Hello,
    Olga, how to make html to work in product category? I mean P and BR don’t work in shown short description. That’s why text looks inlined.
    Give me please instruction what to add to functions.php

    9 Answers
    Avatar: Olga Barlow
    Olga Barlow
    Support staff
    December 29, 2021 at 11:10

    Hello,

    Provide us with WP Dashboard and FTP access to your site to check and help you.

    Regards

    Avatar: andrey-4923
    Andrey
    Participant
    January 8, 2022 at 09:43

    Hello,
    Sorry for my long reply.
    Olga, unfortunately I cannot give access to hosting. Could you please send me instructions what to add to functions.php or wherever. I’ll figure it out.

    Avatar: Olga Barlow
    Olga Barlow
    Support staff
    January 10, 2022 at 10:51

    Hello,

    Could you, please, provide us with temporary WP Dashboard access to your site? We need to check the described issue.

    Regards

    Avatar: andrey-4923
    Andrey
    Participant
    January 10, 2022 at 15:00

    info is in private area

    Please contact administrator
    for this information.
    Avatar: Olga Barlow
    Olga Barlow
    Support staff
    January 10, 2022 at 18:21

    Hello,

    Are you talking about product short description https://prnt.sc/26c5f8u , right? Not about Product category description https://prnt.sc/26c5fqy ?

    Regards

    Avatar: andrey-4923
    Andrey
    Participant
    January 10, 2022 at 21:24

    Hello,
    yes, Olga, i’m talking about product short description in this screenshot https://prnt.sc/26c5f8u

    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    January 14, 2022 at 08:53

    Hello,

    Fixed. Clear cache and check.

    Regards

    Avatar: andrey-4923
    Andrey
    Participant
    January 16, 2022 at 09:24

    Hello,
    Rose, thanks a lot!
    Could you tell me please how did you fix it? It will help me to do the same in Royal theme without creating a ticket here.

    Avatar: Olga Barlow
    Olga Barlow
    Support staff
    January 19, 2022 at 10:12

    Hello,

    Take my apologies for the delay in answering.

    Edit the royal/woocommerce/content-product.php
    Find

    <div class="product-excerpt">
       <?php echo do_shortcode(get_the_excerpt()); ?>
     </div>

    replace with

    <div class="product-excerpt">
        <?php echo wpautop(do_shortcode(get_the_excerpt())); ?>
    </div>

    Regards

  • Viewing 10 results - 1 through 10 (of 10 total)

You must be logged in to reply to this topic.Log in/Sign up

8theme customization service
We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.