How to get line breaks to show in product description in woo commerce?

  • Unknown's avatar

    Hello! I am having trouble getting my line breaks to appear in the product description. I have tried adding the <br> tag in the code tab, but it disappears when I update the product. I am using the WooCommerce plugin.

    The blog I need help with is: (visible only to logged in users)

  • Hi there,

    WooCommerce product description fields often strip out <br> and <p> tags, especially when switching between the Visual and Code (HTML) editors. This means manually added HTML line breaks can be removed when you update or re-edit the product.

    The best way to ensure your line breaks appear correctly in your WooCommerce product description is to use double line breaks in the Visual editor. This means pressing “Enter” twice between lines to create clear paragraph breaks, just like you have in your description.

    Also, I recommend sticking to using only the Visual editor when editing your product description. Switching back and forth between the Visual and Code editors can cause HTML tags like <br> to be removed, which is why your manual line breaks might disappear.

    This approach should preserve your formatting and display the line breaks properly on your product page. If you need further help, feel free to ask!

  • The topic ‘How to get line breaks to show in product description in woo commerce?’ is closed to new replies.