It would be better to include your own CSS file that way you can:
- Use a relative path to your CSS.
- Avoid problems getting the path right to the
wp-admindirectory. Not all people put WordPress in the root directory, so your example above would break for them. - Possibly redundancy by reusing the CSS in your HTML & admin pages for your plugin.
Related Posts:
- Restricting a Plugin to Only Load its CSS and JS on Selected Pages?
- how to include other plugins css files in a shortcode?
- Using tabs for wordpress plugin
- Custom headers for the WordPress plugin directory
- How to update WordPress plugin readme.txt description page without triggering a plugin update?
- How can I make content disappear when a user logs in?
- wp_enqueue_style in Plugin [duplicate]
- Quote rotator in the sidebar
- Make the css of the widget overwrite theme css
- WordPress Plugin Look & Feel
- Add CSS class to add-to-cart button, Woocommerce [closed]
- How to load all plugins CSS after child theme CSS?
- I need to generate the CSS for my plugin from a function, how do i map a request to a function in the front-end?
- Prevent CSS/JS loading when plugin is not used
- Override Theme CSS with CSS from a plugin
- Layout shop page: resize images and columns
- How extend shortcode default values for a plugin?
- How to submit documentation with plugin
- How to override my plugin’s php classes with duplicates that are in my child theme folder
- Is it possible to use Snap Scrolling? [closed]
- How do I write into a file (css)
- How to add page using HTML, CSS and JS?
- Custom CSS for plugin form
- plugin style conflicts, how to override? [closed]
- How to disable CSS rule in Twentythirteen style.css?
- Theme’s default styles are overriding my plugin’s custom CSS
- Globally register styles but enqueue them selectively
- W3 Total cache “empty all caches” and no stylesheets render [closed]
- Admin Panel pagination link styles
- How to style the RSS wordpress?
- How Do I Figure Out What File(s) to Edit from Looking at the Source Code [closed]
- Add a CSS class based on categroy id to archive pages
- Child Pages Short Code plug-in and hover capabilities?
- How to hide CSS by default and show on button press
- (Sticky Row) How do i make a row sticky in wpbakery page builder?
- Ajax Search Lite: Customize Autoscroll
- Delete mobile menu button [closed]
- Widgets Scripts don’t load – but load when I reload the page
- How to get DEFER or ASYNC attribute to appear when I add a stylesheet with wp_enqueue_style from a plugin? [duplicate]
- Stop Plugin from Getting Styles from Other Plugin
- How to apply next/previous classes to LIs for pagination links?
- How to add CSS via custom plugin?
- Plugin Theme CSS [closed]
- How to add a dvi tag to a shortcode then change a generated text using jQuery
- how to prevent all css and javascripts files from loading
- Front-end CSS Library for plugin [closed]
- Hide a Menu Item on Login
- Infinite scroll messing up nth:of-type
- Wooslider custom css
- Basics of changing plugin output
- Minimizing scripts & css files that plugins add
- How to make a dynamic css class whose name changes every visit to confuse scraper
- Moving Jetpack buttons to appear below the first H2 title on all project/post pages [closed]
- Is there a script to collect all hooks and filters provided by a plugin?
- Flickering sidebar when scrolling page [closed]
- Add logo to admin menu in my plugin
- I would like to remove date display on photo preview
- Is wp_deregister_script the best way to deal with unneeded plugins in a page?
- Block wordpress style for my plugin admin page
- Not able to override plugin’s default css rules
- The Events Calendar Plugin – List View Background Colour Issue [closed]
- insert an html tag using php plugin
- Best practice when modifying plugins CSS [duplicate]
- CSS/JS files in WordPress
- How do I work with the SlideDeck plug-in?
- Why is adoptStyles-css stylesheet link added to every page?
- Custom Plugin scripts from admin working in frontend
- Themes conflicts and overrides my WordPress Support widget Plugin styles
- Button and Countdown overlapping mobile menu
- Want to create custom design of progress indicator in wpforms
- Strange admin-ajax / CSS / $_SESSION issue
- Menu not closing after clicking – WordPress – Elementor
- inserting custom css, html and js into the current page as a popup window
- Overriding inline !important CSS with Javscript code snippet with media query
- Apply only the css in my style.css file
- How get horizontal div instead vertical CSS
- SASS not showing in customized preloader plugin
- Implementing Scrollable Images
- wp plugin adds “pagespeed.css” after each css file
- WordPress custom blockquote with black background & white text?
- Caching of combined CSS and JS fails because of losing MIME types through combining by PHP
- how to add custom css at top above all css file for specific url
- How to remove a css class for any wordpress page
- Creating wordpress admin page panel [Theme Option]
- Speed issues because of CSS & JavaScript
- Like/Dislike Bar not working when updating
- Possible jquery / library conflict in plugin usage
- How to activate/deactivate menu tab and keep the same id?
- How to display a sitmap horizontally? [closed]
- How to load css files in a specific order
- Element works, but not on wordpress site [duplicate]
- Content expands beyond its column container [closed]
- How to modify submit button on GravityForms
- Can I merge all my JS and CSS in one file using WP?
- Is there a membership plugin which offers the ability to hide content based on css rules?
- How to add an active state class to my info box
- Can’t change login logo & css – older plugin data blocking?
- How to make a drop-down list so you can press and change display like on this website by using wordpress or CSS
- How to change css poperty through webhook in wordpress
- Dropdown menu only appearing when logged in