Viewing 9 replies - 1 through 9 (of 9 total)
  • Hey there,

    Many thanks for reaching out.

    I’ve taken a look and it looks like this is behaving as expected.

    Please, can you help me with that issue? I really know the bullet points worked normally before – I used it by default 

    To check, did you create a presentation and have you got a screenshot of what was seen there?

    Many thanks!

    Thread Starter tomasjenikovsky

    (@tomasjenikovsky)

    Hello Adam,

    Thanks for your reply.

    After I created this topic I checked the last version of Poema theme and it was last updated on May 15, 2023, so the problem is surely in some of update of Woocommerce plugin thus I created support request under WC plugin page here.

    In general I have problem with bullet points, which I see correctly in editor of short description of WC product in WP administration (like on this screenshot) but on my www presentation the bullet points in short description (.wp-block-post-excerpt__excerpt) are completely missing (screenshot no. 3). It’s like the list-style of text data just not correctly project to the presentation, it looks just like a single block of unformatted text.

    Unfortunately I don’t have any screenshot of the page from the past where the bullet points worked as they should – but I really know it worked..

    Got it. You’re looking at excerpts, and if you’re using an auto-generated excerpt, all tags (including list markup) will be removed. Can you try editing one of the excerpts directly, and using the HTML markup for lists in the excerpt box? It should look somewhat like this.

    <ul>
      <li>First Item</li>
      <li>Second Item</li>
      <li>Third Item</li>
    </ul>

    I should add, you’ll just want to be mindful of where else the excerpt is used to ensure it displays properly. For example, if you’re using social media sharing, you may want to be sure you put a separate sharing message there so the HTML code doesn’t show up un-rendered.

    Thread Starter tomasjenikovsky

    (@tomasjenikovsky)

    Hello,

    I discovered the excerpt formatting disappeared after update WP to 6.3 and it’s a known issue. Fortunately there exists workaround what brings the formatting back.

    It’s just needed to create this php snippet:

    function filter_post_excerpt_attrs( $metadata ) {
        if ( 'core/post-excerpt' === $metadata['name'] ) {
            $metadata["attributes"]["excerptLength"] = false;
        }
    
        return $metadata;
    };
    
    add_filter( 'block_type_metadata', 'filter_post_excerpt_attrs', 10 );

    After that my bullet prints in the product short-descriptions showed up again.

    Ah, so you were not using auto-generated excerpts, and did have manual excerpts with tags in them?

    Thank you @tomasjenikovsky it work for me out too!

    PS. can you redirect me where I will learn how I can customize blocks like Single Product block? I do use Astra Theme

    Especially I would like to change Add to Cart button into Checkout button

    • This reply was modified 1 year, 7 months ago by krzakx.
    Thread Starter tomasjenikovsky

    (@tomasjenikovsky)

    Hi @krzakx,

    I guess that depends on what editor you use. Do you use Gutenberg? Then maybe something like this could help.

    Hi @tomasjenikovsky thank for your replay.

    so, by givng more precisions I do use Single Product block from WooCommerce namespace in Gutenberg.

    so I would be really thankfully to be guided where the heck those blocks root code is stored or how to modify them by child theme functions.php file.

    thanks!

    • This reply was modified 1 year, 7 months ago by krzakx.
Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Bullet points missing in porduct short description (Woocommerce)’ is closed to new replies.