Title: Product Quantity Input Field
Last modified: May 30, 2022

---

# Product Quantity Input Field

 *  Resolved [ace0930](https://wordpress.org/support/users/ace0930/)
 * (@ace0930)
 * [4 years, 1 month ago](https://wordpress.org/support/topic/product-quantity-input-field/)
 * Hi, the quantity input field is not working after I’ve added some custom code
   as you can see in the screenshot: [https://tinyurl.com/2g3d239g](https://tinyurl.com/2g3d239g)
 * The code is:
 *     ```
       <?php
   
       function produc_styling() {
          echo 
          '<style>
             .woocommerce img, .woocommerce-page img {
                background-color: #d1d5db;
             }
          </style>';
       }
   
       product_styling();
   
       ?>
       ```
   

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

 *  Plugin Support [Kaushik S. a11n](https://wordpress.org/support/users/kaushiksomaiya/)
 * (@kaushiksomaiya)
 * [4 years, 1 month ago](https://wordpress.org/support/topic/product-quantity-input-field/#post-15690397)
 * Hi there!
 * Thanks for contacting us!
 * I understand the quantity input field is no longer working after you added a 
   custom code to your site.
 * It looks like the custom code is not correct. If you are simply looking to add
   styles to your products, you could add any custom CSS in **WP Admin > Appearance
   > Customize > Additional CSS** box. (without the <style> tags.)
 * Regarding custom coding: You may want to explore [the WooCommerce Developer Resources Portal](https://developer.woocommerce.com/)
   for resources on developing for WooCommerce.
 * You can also visit the [WooCommerce Facebook group](https://www.facebook.com/groups/advanced.woocommerce/)
   or the `#developers` channel of the [WooCommerce Community Slack](https://woocommerce.com/community-slack/).
   We’re lucky to have a great community of open-source developers for WooCommerce,
   and many of our developers hang out there, as well.
 * I hope this helps! 🙂
 *  Thread Starter [ace0930](https://wordpress.org/support/users/ace0930/)
 * (@ace0930)
 * [4 years, 1 month ago](https://wordpress.org/support/topic/product-quantity-input-field/#post-15690405)
 * [@kaushiksomaiya](https://wordpress.org/support/users/kaushiksomaiya/) Okay, 
   thanks.
 *  [Margaret S. woo-hc](https://wordpress.org/support/users/margaretwporg/)
 * (@margaretwporg)
 * [4 years, 1 month ago](https://wordpress.org/support/topic/product-quantity-input-field/#post-15690527)
 * You’re welcome! Please feel free to open a new thread if you have any other questions
   related to core WooCommerce.

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

The topic ‘Product Quantity Input Field’ is closed to new replies.

 * ![](https://ps.w.org/woocommerce/assets/icon.svg?rev=3234504)
 * [WooCommerce](https://wordpress.org/plugins/woocommerce/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woocommerce/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woocommerce/)
 * [Active Topics](https://wordpress.org/support/plugin/woocommerce/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woocommerce/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woocommerce/reviews/)

 * 3 replies
 * 3 participants
 * Last reply from: [Margaret S. woo-hc](https://wordpress.org/support/users/margaretwporg/)
 * Last activity: [4 years, 1 month ago](https://wordpress.org/support/topic/product-quantity-input-field/#post-15690527)
 * Status: resolved