Sunday, June 16, 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

[Wordpress issuses] justpi on "Home slider"
justpi on "Home slider"
Stay theme home slider not working, all pages appear on home ...en.forums.wordpress.com/.....
[Wordpress issuses] ppenha on "Photobucket album on oxygen theme"
ppenha on "Photobucket album on oxygen theme"
[Wordpress issuses] justjennifer on "Images not displayed after xml import in new website"
justjennifer on "Images not displayed after xml import in new website"
duplicate image + lots of errors import WP to WP ? WordPress.com ...en.forums.wordpress.co...
[Wordpress issuses] assembledjunk on "Delete Account"
assembledjunk on "Delete Account"
Chatango - Help - Accountchatango.com/help?help_account - CachedDelete account · Can't log...
[Help Wordpress] Prefer not to generate thumbnails
Help Wordpress
Prefer not to generate thumbnails - RoyalSlider Supporthelp.dimsemenov.com/.../4768-prefer...