• Resolved Scott Paterson

    (@scottpaterson)


    Using:

    remove_action( ‘cart_lift_email_header’, ‘cart_lift_email_header’,10);
    remove_action( ‘cart_lift_email_footer’, ‘cart_lift_email_footer’,10);

    in theme functions.php does not work. Is there another way to do this?

Viewing 12 replies - 1 through 12 (of 12 total)
  • Hi @scottpaterson,

    I’m sorry that you are facing this issue.

    Hopefully, this issue will be fixed by the end of the week.

    Let me know if you find any other issues.

    Regards,

    Hi @scottpaterson,

    Instead of using the above-mentioned parameters, use this parameter in the theme function to remove header and footer from the sent mail:

    remove_action(‘cl_email_header_section’,’cl_email_header_section’,10);
    remove_action(‘cl_email_footer_section’,’cl_email_footer_section’,10);

    Hopefully, this will solve your issue, and do let me know if you have any further queries.

    Thanks,

    Thread Starter Scott Paterson

    (@scottpaterson)

    @shammirahman007 – That code does not work because there is no actions by that name in the plugin.

    Hi @scottpaterson,

    We’ve updated Cart Lift on the Repository.

    For the current version, use this parameter in the theme function to remove header and footer from the sent mail:

    remove_action(‘cl_email_header_section’,’cl_email_header_section’,10);
    remove_action(‘cl_email_footer_section’,’cl_email_footer_section’,10);

    Hopefully, this will solve your issue.

    Also, do let me know whether it worked or not.

    Thanks,

    Thread Starter Scott Paterson

    (@scottpaterson)

    Hi @shammirahman007,

    Your action hook isn’t in the right spot. It needs to be before email-header.php / email-footer.php are called, not inside of them. Right now it isn’t useful at all.

    The reason why I want to do this at all is so I can remove the background-color: #f7f7f7 div wrapper in email-header.php. It looks ugly and can’t be modified currently.

    Thanks,
    Scott

    Hi @scottpaterson,

    We had a look at the action hook.

    Our developers have identified the issue and now working on it.

    Hopefully, we’ll soon release an update with the fix.

    Thanks

    Thread Starter Scott Paterson

    (@scottpaterson)

    Any update on this?

    Hi @scottpaterson,

    Our developers are working on a fix for this.

    We’ll release an update pretty soon.

    Thanks.

    Hi @scottpaterson,

    We’ve just released an update of the plugin.

    You can now add an action hook to modify your email templates (Header, Footer & Background).

    For the current version, use the following parameter in the theme function to remove background, header and footer from the sent mail:

    remove_action(‘cl_email_header_section’,’cl_email_header_section’,10);
    remove_action(‘cl_email_footer_section’,’cl_email_footer_section’,10);

    function cl_email_bg_color(){
    return “#0073AA”;
    }
    add_filter(‘cl_email_bg_color’,’cl_email_bg_color’);

    Please update the plugin to the latest version, clear cache, and reload your browser.

    Let us know how it goes.

    If the issue is still there, please inform us.

    Thanks.

    Hi @scottpaterson,

    Since we haven’t heard anything from you in a while, we’re now marking this thread as resolved.

    Feel free to open another thread if you face any more issues.

    Thanks.

    • This reply was modified 3 years, 7 months ago by Shammi Rahman.
    Thread Starter Scott Paterson

    (@scottpaterson)

    It seems to work well enough so far.

    Plugin Support C S Sultan

    (@sultan00rextheme)

    Hi @scottpaterson , that’s great!

    Feel free to let us know if you have any further queries.

    Thanks.

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘Modify email template’ is closed to new replies.