I’ll guess it’s because plugins_loaded
is too early to enqueue styles. The wp_enqueue_scripts
action is the appropriate action for enqueueing scripts and styles.
Related Posts:
- Is it ever okay to include inline CSS in plugins?
- Dequeue theme stylesheets but keep widget styling on custom page template
- CSS not affecting widget output
- Custom Plugin – CSS works, JS doesn’t
- How do I add CSS options to my plugin without using inline styles?
- How to add sub-menu to a menu generated by wp_nav_menu by using plugin
- Load js/css files only on specific admin UI pages
- Get list of scripts / styles and show file which enqueued them
- How to prevent loading of all plugin’s resources?
- What is the best way to provide plugin users with a way to customized the styles
- What is better way to use Bootstrap inside admin panel?
- wp_enqueue_style built in styles
- Backslashes being stripped from CSS
- How to check if a stylesheet is already loaded?
- is_page() function doesnt working
- how to include javascript file and css file in wordpress
- How can I add a CSS rule to edit.php?
- How to avoid loading same script twice?
- Remove Internal Style Sheet if no Value Provided?
- How do I include background images in my stylesheets in a plugin?
- What parameter should I pass to wp_enqueue_style to depend on the themes stylesheet?
- Gutenberg blocks not getting styled on back end
- Is there no admin ui guide for 4.x?
- Plugin CSS not enqueing
- What is the proper way to include Bootstrap when executing a shortcode
- Correct check for any admin page with editor
- How to enqueue style in WordPress plugin from theme files?
- How to remove default style of header in wordpress metabox
- How can I avoid conflicts between plugin and theme?
- Plugin Development/ Stop CSS clashes.
- Can’t change the style of a submit input type? [closed]
- Make a plugin page out of influence of the theme’s style
- WordPress plugin enqueue scripts working for js, but not css files
- Distributing Frontend Assets with Plugins
- My stylesheets are not enqueuing
- Plugin Development – Class Constructor Not Firing wp_enqueue_style action hook
- Enqueuing scripts and styles in custom plugins
- How to enqueue scripts in right way in a plugin?
- Are there any official or unofficial guidelines for the styling of a widget?
- Why enqueue styles on hook?
- Proper way to include stylesheet for panels
- How to check via conditional tags for a single plugin page?
- Apply styles to blockquote element with the WYSIWYG editor
- How to make my shortcode load scripts and styles, from within the plugin?
- Styles don’t load correctly. Insecure content
- Completely isolate a plugin view so it doesn’t load the theme
- Enqueue a file that’s not js or css
- Does WordPress default CSS have Grids?
- How to insert HTML/CSS/JS into my iframe plugin?
- How To Protect Plugin Display From Being Affected By Theme’s CSS
- Load stylesheet in edit category page?
- Enqueue ONLY Plugin Styles and Scripts
- WordPress Plugin Authoring question about jquery and css
- How to add some basic inline CSS using existing plugin or theme?
- Why my theme’s css not working on another site
- WordPress plugin development theme issue
- Creating a WP plugin and having issues linking CSS stylesheet within functions
- Why does theme’s reset CSS have higher precedence of plugin’s CSS?
- Twenty-seventy theme remove additional CSS from head
- plugin css is not being applied to the page
- How do I ensure I can loop through every enqueued script and CSS?
- How to avoid conflict if a plugin already have included open library?
- How to customize the size of Featured Images or Post Thumbnails in WordPress?
- Publish, Save Draft and Preview buttons do not work after being moved with jQuery
- Unable to link CSS file
- How can I add the Post ID to Class Name in Jquery?
- Let user override plugin CSS
- WordPress-child problem with many css files in parent theme
- Best practice to include custom user styles in widgets
- How to only Load scripts on variable products page
- How to create A – Z List with pictures?
- how to add contact form 7 shortcode in javascript variable
- What is wrong with using add_option with Multisite instead of add_blog_option in a plugin
- Trouble with Transient API when W3TC is activated [closed]
- $wp_filesystem returns NULL. What are the dependencies?
- “wp_enqueue_style();” don’t load new edited style
- set_sale_price in WooCommerce [closed]
- jquery document ready function not being called [closed]
- $reverse_top_level works the opposite way according to Codex?
- How to serve different thumbnails/images depending on users browser/platform
- How to export post meta with images in wordpress
- Parse form values before sending to options.php
- My WordPress plugin cannot load my JavaScript file
- Add Minimum Dimensions Text to Featured Image
- admin_post equivalent for guest user?
- I am trying to make a page in the admin section similar to the appearance of the Profile page for users
- unregister_setting() vs delete_option() for plugin update
- How to add Plugin functionality in WordPress Frontend Menus
- in_array function Problem
- Best practice for plugin: always detect admin-ajax call?
- Brainstorm – Slow Query from Plugin Need to Speed It Up
- wp_schedule_event not executing function call, even with add_action
- How to query a nested field in wordpress api using _fields param
- function add custom fields to media gallery
- Add quick edit functionnality to plugin table
- using wordpress acf shortcods in tables goes outside the table
- remove different admin menu for specific users
- Shortcode from a plugin not working
- Can’t get query string in ajax call
- WP Cron registers hook without any action (does not call the function)