Title: Fix enqueue style
Last modified: August 21, 2016

---

# Fix enqueue style

 *  Resolved [sireneweb](https://wordpress.org/support/users/sireneweb/)
 * (@sireneweb)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/fix-enqueue-style/)
 * I noticed somes bugs with enqueue style.css, the code doesn’t enqueue correctly
   the style.css
 * see my hotfix
 *     ```
       function abc_scripts() {
       	// Load jQuery
       	wp_enqueue_script("jquery");
   
       	// jQuery cookie, used to add a cookie so visitors can hide the popup
       	wp_enqueue_script("jquery.cookie", plugins_url('/js/jquery.cookie.js', __FILE__));
   
       	// The ajax request so the plugin works with caching plugins
       	wp_enqueue_script("abc-script", plugins_url('/js/script.js', __FILE__));
   
       }
   
       function abc_styles() {
   
       	// Stylesheet for the popup
       	wp_enqueue_style("abc-style", plugins_url('/css/style.css', __FILE__));
       }
       add_action('wp_enqueue_script', 'abc_styles');
       add_action('wp_enqueue_script', 'abc_scripts');
       ```
   
 * i hope to add this hotfix in your next release.
 * [http://wordpress.org/plugins/advanced-browser-check/](http://wordpress.org/plugins/advanced-browser-check/)

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

 *  [fsampei](https://wordpress.org/support/users/fsampei/)
 * (@fsampei)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/fix-enqueue-style/#post-4140241)
 * Where do I put this hotfix? Under the code in the style.css file?
    THANK YOU
 *  Thread Starter [sireneweb](https://wordpress.org/support/users/sireneweb/)
 * (@sireneweb)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/fix-enqueue-style/#post-4140243)
 * open init.php and replace at the end function abc_styles_and_scripts
 *  [fsampei](https://wordpress.org/support/users/fsampei/)
 * (@fsampei)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/fix-enqueue-style/#post-4140245)
 * thank you, but the browser popup doesn’t work: appear only a black screen.
 *  Thread Starter [sireneweb](https://wordpress.org/support/users/sireneweb/)
 * (@sireneweb)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/fix-enqueue-style/#post-4140246)
 * check with firebug if style.css from Advancedbrowser check is loading
 *  [fsampei](https://wordpress.org/support/users/fsampei/)
 * (@fsampei)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/fix-enqueue-style/#post-4140248)
 * Load load my custom theme style.css and and
    [http://www.********************/wp-content/plugins/advanced-browser-check/css/style.css?ver=3.6.1](http://www.********************/wp-content/plugins/advanced-browser-check/css/style.css?ver=3.6.1)
   I have disabled the plug-in.
 * thanks for your patience
 *  Plugin Author [Mattias](https://wordpress.org/support/users/darkwhispering/)
 * (@darkwhispering)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/fix-enqueue-style/#post-4140254)
 * Thanks [@sireneweb](https://wordpress.org/support/users/sireneweb/) for the info,
   and your hotfix.
 * I have just released a update of the plugin, with your hotfix added among some
   other updates. Please see the changelog for full list.
 * A small note. The code above it not working, it is missing an **S** in the ‘wp_enqueue_script’
   name within the ‘add_action’ function, making none of the script or styles to
   load. It must be ‘wp_enqueue_scripts’.
 *  Thread Starter [sireneweb](https://wordpress.org/support/users/sireneweb/)
 * (@sireneweb)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/fix-enqueue-style/#post-4140259)
 * ah thanks a lot 🙂

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

The topic ‘Fix enqueue style’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/advanced-browser-check_ffffff.svg)
 * [Advanced Browser Check](https://wordpress.org/plugins/advanced-browser-check/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/advanced-browser-check/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/advanced-browser-check/)
 * [Active Topics](https://wordpress.org/support/plugin/advanced-browser-check/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/advanced-browser-check/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/advanced-browser-check/reviews/)

 * 7 replies
 * 3 participants
 * Last reply from: [sireneweb](https://wordpress.org/support/users/sireneweb/)
 * Last activity: [12 years, 7 months ago](https://wordpress.org/support/topic/fix-enqueue-style/#post-4140259)
 * Status: resolved