Email builder custom CSS code not saving

This topic has 7 replies, 3 voices, and was last updated 7 months, 4 weeks ago ago by Andrew Mitchell

  • Avatar: Valentin
    Valentin
    Participant
    November 28, 2024 at 09:00

    Hello,

    I’m trying to add a custom css to

    – line-height: normal, because the prices in order subtotal and order total are not inline with the right column.

    I click export, copy the code intro a file, add the code: “line-height”:”normal”, i copy the code, paste the code and click import. Visually, the css applies, but after clicking update, my custom css code dissapears. If i edit the existing styles, the changes are made. But any other css added dissapears after update.

    Files is visible for topic creator and
    support staff only.
    6 Answers
    Avatar: Justin
    Luca Rossi
    Support staff
    November 29, 2024 at 05:34

    Hi @Valentin,

    Thank you for reaching out to us.

    Could you please provide temporary wp-admin access? We need to check your settings.

    To grant WP-Admin access, please proceed to create a new user account with an administrator role through your WordPress Dashboard. Once the account is established, you may securely transmit the username and password to us via the Private Content section designated for this purpose.

    Best Regards,
    8Theme’s Team.

    Avatar: Valentin
    Valentin
    Participant
    November 29, 2024 at 07:15

    Please find wp-admin details

    Please contact administrator
    for this information.
    Avatar: Justin
    Luca Rossi
    Support staff
    November 29, 2024 at 10:04

    Dear @Valentin,

    Currently, there is no hooks to add the custom CSS codes to the Email Builder Templates.

    But you can add your custom CSS codes directly to this file: /wp-content/plugins/et-core-plugin/packages/woocommerce-email-template-customizer/includes/templates/email-header.php

    https://prnt.sc/aMRD5ws4sw16

    And here is the custom CSS codes to make the order subtotal inline:

    
    td.m_7900471647348005016viwec-mobile-50 > span {
        line-height: 1.2
    }
    

    https://prnt.sc/TDJDQj_5-DYo

    For inquiries regarding new features and functional improvements, we kindly ask that you reach out to our development team directly through the following page: https://www.8theme.com/taskboard/

    Best Regards,
    8Theme’s Team

    Avatar: Valentin
    Valentin
    Participant
    November 29, 2024 at 17:21

    thaks, but wouldn’t this be overridden by plugin update?

    Avatar: Justin
    Luca Rossi
    Support staff
    November 29, 2024 at 17:27

    Hi @Valentin,

    Unfortunately, it will be gone when a new update release.

    Best Regards,
    8Theme’s Team

    Avatar: Andrew Mitchell
    Andrew Mitchell
    Support staff
    November 29, 2024 at 17:29

    Dear Valentin,

    We hope you’re reveling in the experience our theme brings! Your enthusiasm is what fuels our passion. Would you be so kind as to channel that energy into a 5-star rating on ThemeForest? Your feedback is the spark that lights our way!

    Click here to spread the love: https://themeforest.net/downloads

    Thank you for being an integral part of our journey!

    Best Regards,
    The 8Theme Team

  • Viewing 7 results - 1 through 7 (of 7 total)

The issue related to '‘Email builder custom CSS code not saving’' has been successfully resolved, and the topic is now closed for further responses

Helpful Topics

We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.