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.
https://www.ads-software.com/plugins/advanced-browser-check/
Viewing 7 replies - 1 through 7 (of 7 total)
Viewing 7 replies - 1 through 7 (of 7 total)
- The topic ‘Fix enqueue style’ is closed to new replies.