Best practices for dequeueing styles in plugins
-
I want to ask what the best practices are for enqueueing and dequeueing stylesheets in plugins that you create. For myself, i ran across a situation in a project where i built multiple plugins that used different styles and ran across situations where ‘plugin2/style2’ for example was still using styles from ‘plugin1/style1’ and i realized that was because i hadn’t DEqueued the stylesheet from ‘plugin1/style1’.
So, my question is what are the WP recommended best practices for when and how best to dequeue styles/scripts, both if you’re working with a child theme and not. I would like to make sure that i do this by the book.
thank you!
Viewing 11 replies - 1 through 11 (of 11 total)
Viewing 11 replies - 1 through 11 (of 11 total)
- The topic ‘Best practices for dequeueing styles in plugins’ is closed to new replies.