• Resolved ace0930

    (@ace0930)


    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

    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

    (@kaushiksomaiya)

    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 for resources on developing for WooCommerce.

    You can also visit the WooCommerce Facebook group or the #developers channel of the WooCommerce 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

    (@ace0930)

    @kaushiksomaiya Okay, thanks.

    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.