I have written a basic gallery plugin that uses wp_enqueue_style to include a stylesheet on the page. I'd like for the WordPress theme to be able to override the style of the plugin which means I'd like to my plugin to play nice and output the css file before the theme css file.
wp_enqueue_style has a deps
parameter for exactly this requirement. My question is what value should I use for the deps
parameter if I want to say "I depend on the themes css file"?
The current plugin code is incorrect because it uses false
for the deps
parameter:
// Enqueue a CSS style file - see http://codex.wordpress.org/Function_Reference/wp_enqueue_style
wp_enqueue_style('bitvol_galleria_css', BITVOL_GALLERIA_URL . '/bitvolution-image-galleria.css', false, $this->bitvol_galleria_version, 'all' );