• Resolved antoinelrx

    (@antoinelrx)


    Hi,
    I can’t change the spacing of woocommerce emails body.

    <table border="0" cellpadding="0" cellspacing="0" width="100%" id="template_body">
    <tbody>
    <tr>
    <td valign="top" id="body_content" style="background-color: #fff; background: #ffffff; padding: 20px 30px 20px 30px;" bgcolor="#ffffff">
    <!-- Content Section start -->
    <table border="0" cellpadding="0" cellspacing="0" width="100%">
    <tbody><tr>
    <td valign="top" style="padding: 0px 48px 0;"> <!--- this spacing ---!>

    I don’t understand where it is coming from. When I look woocommerce templates it is not there. ANd no css is able to overrride this padding rule.

    #template_body #body_content table tbody tr td {
    padding: 0 !important;
    }//not working

    table[border="0"][cellpadding="0"][cellspacing="0"][width="100%"] td[valign="top"][style*="padding: 0px 48px 0"] {
    padding: 0 !important;
    }//not working .

    Do you have an idea ?

    regards.

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Support Mirza Hamza Baig

    (@hamzawpexperts)

    Hi @antoinelrx,

    Thanks for contacting us.

    We hope you are doing well. We’ve informed our technical team about your issue, and they will work on it promptly. When we receive their response, we will get back to you. Our team is here to assist you. Thank you for your patience.

    Thanks & Regards
    WP Experts Support Team

    Plugin Support Mirza Hamza Baig

    (@hamzawpexperts)

    Hi @antoinelrx,

    The styling file is located at: email-templates/templates/woo/emails/email-styles.php.

    #body_content table td {
    padding: 0px 48px 0;
    }

    The following CSS affects the frontend layout of WooCommerce emails.
    However, since this file is part of the plugin itself, any updates to the plugin will overwrite your changes. Therefore, you will need to reapply your modifications after each update.

    If you have any questions, feel free to reach out. We’re here to assist you.

    Thank you

    Thread Starter antoinelrx

    (@antoinelrx)

    Hi,
    Thank you for your quick reply. This will work for now but I guess you already know this is bad practice to make any change to a plugin file as it is not update proof.
    Why would you add spaces there by the way? Your plugin offers various ways to change email spacing but not this one that is hard coded.
    Will it be fixed in the future ?

    Regards

    Plugin Support Mirza Hamza Baig

    (@hamzawpexperts)

    Hi @antoinelrx,

    If the user does not set it, this will be shown by default. That’s why we’ve kept it this way for now, but we will reduce it from 48px to 20px so that the default appears less prominent. We will add this change in our future release.

    Thread Starter antoinelrx

    (@antoinelrx)

    hi.
    Thank you for your explanations. When you say “if the user does not set it” what are you referring to ?
    Because I tried to set spacing at several places and none removed the padding of the mentioned table column.
    Regards

    Plugin Support Mirza Hamza Baig

    (@hamzawpexperts)

    Hi @antoinelrx,

    We have provided an option in the backend under the ‘Email Body‘ tab named ‘Padding Left/Right‘, which allows you to adjust the left and right padding. By default, we have set it to 48px in the code, but in the next release, we will change the default to 20px.

    Hope you understand.

    Thread Starter antoinelrx

    (@antoinelrx)

    Hi,
    I’ve ended up removing your plugin completely. Too many bugs (spacing issues). Some can’t be edited using your settings or with css as they are hardcoded. (as mentioned before).
    I also found translation issues in woocommerce emails that disappeared when I disabled your plugin.
    I will just create my own email template.

    Best of luck.
    Regards

    Plugin Support Mirza Hamza Baig

    (@hamzawpexperts)

    Hi @antoinelrx,

    Thank you for sharing your concerns. We sincerely apologize that the resolution provided did not meet your expectations. Your feedback is invaluable to us and helps us continually improve our products and services to better meet the needs of our customers.

    Regarding the issue with “Too many bugs (spacing issues),” could you kindly provide a screencast showing the exact problem you’re encountering? This will help us pinpoint the issue more efficiently and work toward a solution.

    Additionally, we noticed you mentioned translation issues in WooCommerce emails that seemed to disappear when our plugin was disabled. Could you please let us know which translation plugin you are using? This information will assist us in troubleshooting the conflict and ensuring a smoother experience for you.

    We truly appreciate your cooperation and look forward to resolving this matter as quickly as possible.

    Thank you

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

The topic ‘Woocommerce body spacing/padding’ is closed to new replies.