• marketing47

    (@marketing47)


    Hello,

    I would like to change the default image of the gift card email, it’s possible ?

    Because i’m stuck.
    Thank you for your help.

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Support Juan Coronel

    (@juaancmendez)

    Hello there,
    we hope you’re doing well!

    In order to achieve what you need add the following code in the functions.php file of your active child theme:

    if ( ! function_exists( 'ywgc_custom_header_image_url_custom' ) ) {
    function ywgc_custom_header_image_url_custom( $header_image_url ) {
    $header_image_url = 'insert the gift card image url you want';
    return $header_image_url;
    }
    add_filter( 'ywgc_custom_header_image_url', 'ywgc_custom_header_image_url_custom', 99 );
    }

    Check it out and tell us if it works well for you, please.

    Best regards.

    Thread Starter marketing47

    (@marketing47)

    That worked !!

    How can i change the design of this :
    1. Reduce the title
    2. Change the Price color.

    Thank you for your help

    Thread Starter marketing47

    (@marketing47)

    I got 3 questions :

    1. It’s possible to skip a line in the introductive message ?
    2. It’s possible to change the title near the price ?
    3. It’s possible to change the color of the price and the CTA button ?

    Ps : i just saw the image of my previous message not loaded, it’s was about the title juste before the price and the price.

    Thank you for your help !

    • This reply was modified 4 months, 4 weeks ago by marketing47.
    • This reply was modified 4 months, 4 weeks ago by marketing47.
    • This reply was modified 4 months, 4 weeks ago by marketing47.
    • This reply was modified 4 months, 4 weeks ago by marketing47.
    Plugin Support Juan Coronel

    (@juaancmendez)

    Hello there,

    To make the modifications you want, you must copy the template ywgc-gift-card-template.php located at:

    \wp-content\plugins\yith-woocommerce-gift-cards\templates\yith-gift-cards\

    and paste it into your theme directory:

    \your-theme\woocommerce\yith-gift-cards\

    There you can make the modifications you want.

    Could you check it, please?

    Best regards.

    Thread Starter marketing47

    (@marketing47)

    i’m sorry but i talk about the email design not of the gift card template.

    Thread Starter marketing47

    (@marketing47)

    Please can you check this : https://tinyurl.com/272x627x ?

    Thread Starter marketing47

    (@marketing47)

    It’s possible to hide this part of the email ?

    https://tinyurl.com/2bx9wpnx

    Plugin Support Juan Coronel

    (@juaancmendez)

    Hello there,

    The mentioned template is also used for email. In any case, to achieve what you need, please do the following:

    • add this code in the functions.php file of your active theme:
    if ( ! function_exists( 'yith_ywgc_email_description_text' ) ) {
    function yith_ywgc_email_description_text() {
    return '';
    }
    add_filter( 'yith_ywgc_email_description_text', 'yith_ywgc_email_description_text', 99 );
    }
    if ( ! function_exists( 'yith_wcgc_template_product_name_text' ) ) {
    function yith_wcgc_template_product_name_text() {
    return 'your_custom_name_text';
    }
    add_filter( 'yith_wcgc_template_product_name_text', 'yith_wcgc_template_product_name_text', 99 );
    }
    • you can remove the button from the plugin configuration, in Settings > General > Email settings > Show a button in the gift card email > set to disable
    • you can also modify the introductory text from Email Settings > YITH Gift Cards – Gift Card Delivery > Introductory message.

    Check it out and tell us any doubt, please.

    Best regards.

Viewing 8 replies - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.