• Resolved antoine69

    (@antoine69)


    Hi,
    Is there a way to add line breaks to product meta data on the single product page ?
    I mean, add a line break after the SKU value, another one after the Category value and maybe another one after the Tags values.

    The code is written with SPANs on a single line so ther’s no line breaks.

    Is it possible and how ?
    Thanks

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support AW a11n

    (@slash1andy)

    Automattic Happiness Engineer

    Hey there!

    This sounds like some formatting your theme is doing, but without a link to your site, it’s impossible to advise any further on this at all. Can you please send a link to where you are seeing this?

    Hi
    Add following snippet to active theme/child theme:

    add_action( 'wp_head', 'ywp_product_meta_break_line' );
    function ywp_product_meta_break_line() { 
        ?>
        <style>.product_meta>span{disply:block;margin-bottom:10px}</style>
        <?php
    }

    or just insert following to your style.css file:

    .product_meta>span{disply:block;margin-bottom:10px}

    Good luck

    Thread Starter antoine69

    (@antoine69)

    Thanks very much @yazdaniwp.
    You forgot the ‘a’ in display.
    It works perfectly !
    It’s better looking now.
    Patrick

    • This reply was modified 4 years, 8 months ago by antoine69.
    • This reply was modified 4 years, 8 months ago by antoine69.
    • This reply was modified 4 years, 8 months ago by antoine69.
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘add line breaks to product meta data on the single product page’ is closed to new replies.