Quantcast
Channel: Topic Tag: action | WordPress.org
Viewing all articles
Browse latest Browse all 889

Mick Levin on "[Plugin: Recent Posts Slider] Using 'wp_print_styles' makes it difficult to override styles"

$
0
0

Hello,

I am trying to implement custom styles via my theme, and I was wondering, why your style.css always loads *after* my theme's one, even when I changed the dependencies and priorities.

Then I looked into a source code of the plugin and found that you use 'wp_print_style' action, rather than 'wp_enqueue_scripts' one.

That breaks the dependencies, and does not let set proper overrides from withing a theme's CSS.

Also WP Codex says:

"Since WordPress 3.3 wp_print_styles should not be used to enqueue styles or scripts."

RE: http://codex.wordpress.org/Plugin_API/Action_Reference/wp_print_styles

Could I hope that be fixed, or shall I keep using "!important" unneccessary in my CSS? :(

Thank you!

https://wordpress.org/plugins/recent-posts-slider/


Viewing all articles
Browse latest Browse all 889

Trending Articles