IF you want the CSS to be in your plugin’s settings page, you should be using this action: admin_enqueue_scripts
, as the action you are currently using is for the front end.
add_action( 'admin_enqueue_scripts', array($this, 'register_plugin_styles' ));
Related Posts:
- Why wp_register_style() is important while I’m using a complete wp_enqueue_style()? [duplicate]
- I register and enqueue stylesheet but nothing is rendered
- Changes in enqueued / registered stylesheet paths not updating—why?
- How do I view registered syles and scripts for enqueue
- Missing dns-prefetch link when using “nested” wp_register_style
- Why isn’t my plugin script loaded in the backend?
- Deregister a CSS file that comes with a plugin
- Edit CSS of a plugin
- Where is the right place to register/enqueue scripts & styles
- Why is style.css not being enqueued?
- How does one load style.css into a theme?
- Load js/css files only on specific admin UI pages
- Add ‘title’ attribute to stylesheets with wp_enqueue_style()
- wp_enqueue_style for Plugin with multiple stylesheets
- Avoid to load default WP styles in login screen
- How to dequeue / deregister any theme styles and scripts
- How to add extra attribute to stylesheet link?
- Why my CSS file is not being registered in functions.php? [closed]
- How Would You Enqueue A Google Web Font?
- Does wordpress wp_enqueue_style support noscript?
- Enqueue a css using negative conditional tags
- Duplicated CSS files using wp_enqueue_style()
- Enqueue styles through the wp_enqueue_style function vs link tag inside header.php
- How to force stylesheet to load before anything else in header?
- Add Font Awesome Embed CDN Script To WordPress
- wp_add_inline_style in plugin not working
- My child theme CSS get called twice
- Enqueue stylesheet depending on template
- Best spot for wp_register_script() and wp_register_style()
- Enqueued Stylesheet Version Number Not Being Appended
- Load custom css after bootstrap
- I want to include my style.css in function.php file?
- The correct way to include JavaScript and CSS in my WordPress Themes
- Register script/style: Is it possible to customize the version query string via plugin?
- How to dequeue wp_get_custom_css in Twenty Twenty Theme
- Using multiple versions of jQuery while still calling it like WP likes
- Combining multiple stylesheets into one conditional block
- My style in my child theme loads after the parent theme, but it breaks stuff: How do I load it before the parent theme?
- How to enqueue stylesheets?
- Relative path in wp_register_style not working
- Best way to enqueue CSS and JS in a specific location
- Child theme style.css versioning
- Never Enqueued Stylehsheet
- How can I add style sheet link to my wordpress page
- Which is the best way to incorporate custom fonts?
- Stylesheet not loaded on register page
- Loading custom CSS
- wp_enqueue_style not working if the file is in a sub folder
- Custom style sheet won’t enqueue / load if the css file actually exists. [closed]
- Additional CSS – crashing with javascript-html minifier?
- Adding Font Awesome to WP Plugin
- enqueue_parent_style
- Add wp_add_inline_style into another wp_add_inline_style for better performance
- 404 Not Found on CSS file even though it’s in the correct directory
- What is the difference between the different ways of linking stylesheets
- Enqueuing a stylesheet and ensuring it’s loaded before (not after) the theme’s stylesheet
- Split Media Queries in different files!
- Proper use of wp_enqeue_style
- What is the colors handle from WordPress core for and why does it not have a path?
- make admin.css in my child theme
- How to make my shortcode load scripts and styles, from within the plugin?
- Google Fonts not loading correctly
- Un-enqueue styles for certain built-in Gutenberg block types?
- Apply function only if end of url has /amp/ [closed]
- Enqueueing styles with version variable
- I can’t add CSS with functions.php
- Enqueue style for specific site type
- How to properly add my styles overriding current styles
- Can’t get custom CSS file to load in Child theme
- Dequeue, Unregister, Remove Action – Not Working on Plugin
- Why wp_enqueue_style() is adding CSS class?
- Use conditionals with wp_enqueue_style to attach stylesheet according to post type displayed
- How To Load wp_add_inline_styles
- Why does using wp_register_style without wp_enqueue load and print CSS tags in the front-end?
- style.css is not loaded in other template files than index.php (eg. front-page.php)
- Enqueued style gets commented if not logged in
- Move dashicons.min.css to Footer
- Can’t Workout Dependency of Stylesheets
- Homepage not loading correctly, but then loads when refreshing
- How to remove Google fonts from wp-admin (Roboto) added by core
- How can I troubleshoot enqueue in general and loading Google fonts specifically?
- How to offload CSS and JS files from wp-content/themes folder?
- Customize the reset password page?
- font style is not working on domain
- Modify arguments for parent theme’s `wp_register_style` via child theme
- wp_enqueue_script stopped working
- Why won’t my Custom CSS Load
- Enqueue custom jQuery UI theme to override Google CDN theme
- Different styles on multiple pages
- Unable to load stylesheet via wp_enqueue_style
- wp_enqueue_style url is trimmed somehow
- wp_enqueue doesn’t load dependencies
- Custom admin bar css on front end bug
- Stooping a css file from loading in the header
- Trying to get styles to register than enque
- enqueue style sheet and bootstrap
- How to create my own style.css file in an wordpress child-theme
- Why do WordPress adds the id=”handle-{js|css}” attribute to scripts and stylesheet?
- Stylesheet version not showing in browser when adding version number to stylesheet in enqueue
- How do I remove Google Fonts from a parent theme?