Title: Remove Fields
Last modified: March 2, 2020

---

# Remove Fields

 *  [slinke](https://wordpress.org/support/users/slinke/)
 * (@slinke)
 * [6 years, 3 months ago](https://wordpress.org/support/topic/remove-fields-11/)
 * 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](https://wordpress.org/support/users/yithemes/)
 * (@yithemes)
 * [6 years, 2 months ago](https://wordpress.org/support/topic/remove-fields-11/#post-12507047)
 * 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](https://wordpress.org/support/users/slinke/)
 * (@slinke)
 * [6 years, 2 months ago](https://wordpress.org/support/topic/remove-fields-11/#post-12510983)
 * 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](https://wordpress.org/support/users/yithemes/)
 * (@yithemes)
 * [6 years, 2 months ago](https://wordpress.org/support/topic/remove-fields-11/#post-12528267)
 * 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.

 * ![](https://ps.w.org/yith-woocommerce-gift-cards/assets/icon-256x256.gif?rev=
   3227932)
 * [YITH WooCommerce Gift Cards](https://wordpress.org/plugins/yith-woocommerce-gift-cards/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/yith-woocommerce-gift-cards/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/yith-woocommerce-gift-cards/)
 * [Active Topics](https://wordpress.org/support/plugin/yith-woocommerce-gift-cards/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/yith-woocommerce-gift-cards/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/yith-woocommerce-gift-cards/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [YITHEMES](https://wordpress.org/support/users/yithemes/)
 * Last activity: [6 years, 2 months ago](https://wordpress.org/support/topic/remove-fields-11/#post-12528267)
 * Status: not resolved