Monday, June 17, 2013

[Help Wordpress] incorrect enqueue order for RoyalSlider stylesheets


incorrect enqueue order for RoyalSlider stylesheets



I was trying to override some RoyalSlider styles and noticed that the stylesheets are not hooked in with the other plugins. This is because the code uses the "wp_print_styles" hook instead of the "wp_enqueue_scripts" hook. The latter is the proper hook for stylesheets as well as for Javascript and other scripts.


http://codex.wordpress.org/Plugin_API/Action_Reference/wp_enqueue_s...: "wp_enqueue_scripts is the proper hook to use when enqueuing items that are meant to appear on the front end. Despite the name, it is used for enqueuing both scripts and styles. "


http://codex.wordpress.org/Function_Reference/wp_enqueue_style#Usin...
http://codex.wordpress.org/Plugin_API/Action_Reference/wp_print_styles


Hope this is helpful!
Donna



.

help.dimsemenov.com

No comments:

Post a Comment

Search

Other post