• Hi there,

    is it possible to remove the Messagefield?

    And is it possible to Remove the “Got a gift card from a loved one? Use it here!” from the Cart Page?

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

    (@yithemes)

    Hello there,
    hope you are doing well! 🙂

    Unfortunately, it’s not possible to remove them using the plugin settings, but you can add the next CSS rules in your theme “Appearance > Customize > Additional CSS” to hide the message field:

    .gift-card-content-editor .ywgc-message {
      display: none;
    }

    And add the next code in the functions.php of your active theme to remove the gift card input field in the cart page:

    if (!function_exists('ywgc_remove_cart_form')) {
        function ywgc_remove_cart_form() {
    
            $class = YITH_YWGC_Frontend::get_instance();
    
            remove_action( 'woocommerce_before_cart', array(
                $class,
                'show_field_for_gift_code'
            ) );
        }
    
        add_action('init', 'ywgc_remove_cart_form');
    }

    Could you check it and let us know if all is working properly, please?

    Have a nice day!

    Thread Starter slinke

    (@slinke)

    Hey there,

    thank you for the quick Response.

    I was able to remove the Text field but after Additing the Code to the Funktion.php Nothing Chance =(

    Plugin Author YITHEMES

    (@yithemes)

    Hello there,

    Sorry for the late reply.

    We have been testing again the code and seem that it’s working properly.

    Could you check if you are adding it in the functions.php of your active theme/child theme?

    Also, could you check if you have the plugin updated to the latest version, please?

    Let us know any news.

    Have a nice day! 🙂

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

The topic ‘Remove Fields’ is closed to new replies.