CSS should be enqueued with media=all
-
The plugin uses this line to add the CSS:
wp_enqueue_style( 'twiget-widget-css', TWIGET_PLUGIN_URL . '/css/twiget.css', array(), '', false );
But the last argument is not the “in_footer” argument (like for scripts), it is resetting the media-atrribute to an empty string, but this should be the default (media=”all”). You should omit the last argument (“false”) to achieve this.
See:
https://codex.www.ads-software.com/Function_Reference/wp_enqueue_script
https://codex.www.ads-software.com/Function_Reference/wp_enqueue_styleBest regards
Torsten
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘CSS should be enqueued with media=all’ is closed to new replies.