Title: Inline CSS !important
Last modified: March 5, 2025

---

# Inline CSS !important

 *  [franklnx](https://wordpress.org/support/users/franklnx/)
 * (@franklnx)
 * [1 year, 3 months ago](https://wordpress.org/support/topic/inline-css-important/)
 * Hi,
   looking at the code for a simple customization I noticed that the “select”
   element has an inline style as follows:
 *     ```wp-block-code
       <select id="yith-wapo-16" name="yith_wapo[][16]" class="yith-wapo-option-value" data-addon-id="16" style="width: 75% !important;" required="">
       ```
   
 * The question is, why is the “!important” rule introduced as inline?
   This makes
   it quite complicated to change the width value via CSS.
 * Did I miss any option in the block control panel where a different value can 
   be specified?
 * Thanks for the support 😉

Viewing 1 replies (of 1 total)

 *  [Facundo A.](https://wordpress.org/support/users/aranofacundo/)
 * (@aranofacundo)
 * [1 year, 3 months ago](https://wordpress.org/support/topic/inline-css-important/#post-18352844)
 * Hi there,
 * I hope you’re well. About your question, the inline `!important` rule is used
   to that you can set the width of the add-on without being affected by the current
   theme.
 * In this case, if you don’t want this, you could copy the template in the following
   path to the `/woocommerce/addons` folder of your current theme: `wp-content/plugins/
   yith-woocommerce-product-add-ons/templates/front/block.php`
 * You can then go to the line 209 of the file in your theme and remove the `!important`
   string.
 * We’ll remain at your disposal.

Viewing 1 replies (of 1 total)

The topic ‘Inline CSS !important’ is closed to new replies.

 * ![](https://ps.w.org/yith-woocommerce-product-add-ons/assets/icon-128x128.gif?
   rev=3142291)
 * [YITH WooCommerce Product Add-Ons](https://wordpress.org/plugins/yith-woocommerce-product-add-ons/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/yith-woocommerce-product-add-ons/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/yith-woocommerce-product-add-ons/)
 * [Active Topics](https://wordpress.org/support/plugin/yith-woocommerce-product-add-ons/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/yith-woocommerce-product-add-ons/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/yith-woocommerce-product-add-ons/reviews/)

## Tags

 * [css](https://wordpress.org/support/topic-tag/css/)
 * [customization](https://wordpress.org/support/topic-tag/customization/)

 * 1 reply
 * 2 participants
 * Last reply from: [Facundo A.](https://wordpress.org/support/users/aranofacundo/)
 * Last activity: [1 year, 3 months ago](https://wordpress.org/support/topic/inline-css-important/#post-18352844)
 * Status: not resolved