Title: frontend_style function
Last modified: July 8, 2022

---

# frontend_style function

 *  Resolved [gaet](https://wordpress.org/support/users/gaet/)
 * (@gaet)
 * [3 years, 10 months ago](https://wordpress.org/support/topic/frontend_style-function/)
 * Hi,
    Thanks for your great plugin. I’ve a request for an improvement :
 * In the frontend_style function (plugins/woocommerce-product-stock-alert/classes/
   class-woo-product-stock-alert-frontend.php), it would be great if :
 * LINE 77
    – check if `$alert_text_color` is not empty (otherwise there is a syntax
   error : `style="color:"`) – choose the tag of the title (h6) to respect the page
   semantic
 * LINE 137
    – the styles inline will be included only when the button is being 
   present on the page (and not in others pages) – the styles inline will be included
   only if `$button_background_color_onhover`, `$button_text_color_onhover`, `$button_border_color_onhover`
   are not empty (otherwise there is a w3c error)
 * Thanks !
    -  This topic was modified 3 years, 10 months ago by [gaet](https://wordpress.org/support/users/gaet/).

Viewing 1 replies (of 1 total)

 *  Plugin Author [MultiVendorX](https://wordpress.org/support/users/wcmp/)
 * (@wcmp)
 * [3 years, 10 months ago](https://wordpress.org/support/topic/frontend_style-function/#post-15809959)
 * Hi [@gaet](https://wordpress.org/support/users/gaet/), we have opened a git request
   for this : [https://github.com/wcmarketplace/woocommerce-product-stock-alert/issues/66](https://github.com/wcmarketplace/woocommerce-product-stock-alert/issues/66)
 * You can track the progress of this request from here.

Viewing 1 replies (of 1 total)

The topic ‘frontend_style function’ is closed to new replies.

 * ![](https://ps.w.org/woocommerce-product-stock-alert/assets/icon-256x256.gif?
   rev=3323952)
 * [Notifima – WooCommerce Stock Manager, Inventory Management, Waitlist](https://wordpress.org/plugins/woocommerce-product-stock-alert/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woocommerce-product-stock-alert/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woocommerce-product-stock-alert/)
 * [Active Topics](https://wordpress.org/support/plugin/woocommerce-product-stock-alert/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woocommerce-product-stock-alert/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woocommerce-product-stock-alert/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [MultiVendorX](https://wordpress.org/support/users/wcmp/)
 * Last activity: [3 years, 10 months ago](https://wordpress.org/support/topic/frontend_style-function/#post-15809959)
 * Status: resolved