• Resolved davidovic123

    (@davidovic123)


    Hi,

    Currently, the notification is displayed in the emails like this:

    Tracking information

    Your tracking number: HY2587349PO by DHL

    I want to display it like this:

    Tracking information:
    Your tracking number: HY2587349PO by DHL

    How to reduce spacing between the two lines?

    Thank you,

    • This topic was modified 2 years, 3 months ago by davidovic123.
    • This topic was modified 2 years, 3 months ago by davidovic123.
Viewing 5 replies - 1 through 5 (of 5 total)
  • Hello,
    Please follow this guide to add below PHP snippet:

    add_filter( 'woocommerce_email_styles', function ( $css ) {
    	$css .= 'h2.email-upsell-title {
        margin-bottom: 0px !important;
    }';
    
    	return $css;
    } );

    Best regards

    Thread Starter davidovic123

    (@davidovic123)

    Hi @kimvt1991,
    Thanks for this snippet of code.

    Please, I would to ask you how to override the “woo-order-email.php” file in child theme. Which path & folder should I use?

    I tried the followings, but don’t work:
    woocommerce -> admin -> woo-order-email.php
    woocommerce -> woo-orders-tracking -> admin -> woo-order-email.php
    woocommerce -> woo-orders-tracking -> woo-order-email.php
    woo-orders-tracking -> woo-order-email.php

    Thank you very much,

    Sorry, this is not a template file so it’s not possible to replace this file.

    Thread Starter davidovic123

    (@davidovic123)

    Thank you, @kimvt1991,

    You’re welcome and thanks for the nice review.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Edit email notification’ is closed to new replies.