• Resolved +ES

    (@evelynmsdesigngraphicscom)


    Hi, We’ve been successfully using WooCommerce for years – thank you for making this plugin!

    We noticed that at some point several Horizontal Rule Lines were added to the layout on the New Order Template (between sections) and we would like to remove those Horizontal Rules. Is that possible? If so please advise.


    Ultimately, I would like to get the appropriate CSS for me to add to my Theme’s Options > custom CSS file to modify the New Order Template {{Or}} To get the appropriate code for me to add to my Theme’s Child Theme > functions.php file.

    Please let me know if you need any additional information from me.
    Thank you in advance for your assistance.

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support Frank Remmy (woo-hc)

    (@frankremmy)

    Hi @evelynmsdesigngraphicscom,

    Thanks for reaching out, and glad WooCommerce has been working well for you over the years!

    The horizontal rule lines you’re seeing in the New Order email template were added as part of WooCommerce’s email improvements in a recent update. Customizing or removing them falls under custom code modifications, which are outside our Support Policy, but I’m happy to point you in the right direction!

    • You can try to hide it via CSS
    /* Hide all horizontal lines in WooCommerce new order emails */
    .woocommerce-email hr {
        display: none !important;
    }
    • The email templates are overridable via your child theme. The New Order email template is located at:
    woocommerce/templates/emails/admin-new-order.php
    

    You can override it by copying it to your child theme at:

    your-child-theme/woocommerce/emails/admin-new-order.php
    

    From there you’d be able to remove the <hr> elements directly from the template. WooCommerce’s documentation on overriding templates is a great starting point: https://woocommerce.com/document/template-structure/

    For help with custom code modifications like this, I’d recommend checking out our customizations page where you can connect with developers, our Developer Hub, or our Developer Slack Community.

    Hope that helps point you in the right direction!

    Thread Starter +ES

    (@evelynmsdesigngraphicscom)

    Hi, @frankremmy, thank you very much for the detailed response! That does point me in the right direction and I will work on that on my end. Have a great day!

    Plugin Support shahzeen(woo-hc)

    (@shahzeenfarooq)

    Hi there,

    You’re very welcome! I’m glad the information helped point you in the right direction.

    If you have any questions while working on this or need further assistance, please don’t hesitate to reach out we’ll be happy to help.

    Before you go, If you felt supported through the issue, a quick review on ww.wp.xz.cn would mean a lot. It helps others feel confident choosing it, knowing there’s help when they need it.

    Leave a review here:https://ww.wp.xz.cn/support/plugin/woocommerce/reviews/#new-post

    Thank you

Viewing 3 replies - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.