• Resolved webrightnow

    (@webrightnow)


    Hi, I am trying to work out how to remove the text in the email footer that says:

    “To use this gift card, you can either enter the code in the gift card field on the cart page or click on the following link to automatically get the discount.”

    I copied the email template to my theme, but it doesn’t have any text, just code. How do I actually edit the output?

    Thanks

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author YITHEMES

    (@yithemes)

    Hi there,
    hope you are doing well! ??

    You can edit this text by adding the next code in the functions.php of your active theme and replacing the actual text in the code with the new text you want:

    if(!function_exists('ywgc_description_template_email_text_custom')) {
        function ywgc_description_template_email_text_custom(  ) {
            set_option( 'ywgc_description_template_email_text', __( 'To use this gift card, you can either enter the code in the gift card field on the cart page or click on the following link to automatically get the discount.', 'yith-woocommerce-gift-cards' ) );
    
        }
        add_action( 'init', 'ywgc_description_template_email_text_custom' );
    }

    Could you check it and let us know, please?

    Have a nice day!

    Thread Starter webrightnow

    (@webrightnow)

    Thanks, I’ll check it out when I next run an update. I was on a tight schedule so I edited the plugin’s code instead… Not the proper way, but quicker!

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