Put this code in your current active theme function.php file.
function wpdocs_theme_name_scripts() {
wp_enqueue_style('my-styles',get_template_directory_uri() . '/mystyles.css',array('plugin-style-handle'));
}
add_action( 'wp_enqueue_scripts', 'wpdocs_theme_name_scripts' );
Related Posts:
- how to include other plugins css files in a shortcode?
- How can I dequeue a Plugin Stylesheet?
- wp_enqueue_style in Plugin [duplicate]
- How can I enqueue a style only when a particular widget is active?
- Prevent CSS/JS loading when plugin is not used
- How to add CSS via custom plugin?
- Load CSS before Theme CSS
- Best way to overide plugin CSS?
- Restricting a Plugin to Only Load its CSS and JS on Selected Pages?
- How do I cleanly override a plugin’s CSS with a child theme?
- How can I reduce the amount of files loaded/included per plugin?
- Get info (url) from already enqueued styles
- Add CSS animation as Preloader to WordPress
- Plugin throws up 404 on front-end when when enqueuing style with filetime
- Styling readme.html in plugin?
- Unable to load stylesheets and scripts to plugin settings page
- Layout shop page: resize images and columns
- How extend shortcode default values for a plugin?
- filemtime() warning when enqueuing style within plugin
- Is it possible to use Snap Scrolling? [closed]
- Image resizing on home page (product category) [closed]
- How to enqueue a theme style-sheet to my admin settings page?
- W3 Total Cache: Load CSS asynchronously for better PageSpeed score? [closed]
- How do I write into a file (css)
- How to generate CSS from a shortcode within a plugin
- Custom CSS for plugin form
- How to remove style and js from theme and add your own style and js where shortcode is used?
- How to disable CSS rule in Twentythirteen style.css?
- Theme’s default styles are overriding my plugin’s custom CSS
- Remove ALL css for a specific plugin page
- Can someone please tell me what is wrong with my plugin?
- How Do I Figure Out What File(s) to Edit from Looking at the Source Code [closed]
- Child Pages Short Code plug-in and hover capabilities?
- How to hide CSS by default and show on button press
- WordPress plugin output formatting
- how to access all user dashboard on fronted page [closed]
- What would I need to write into a custom plugin in order to add a switch for a custom string of CSS to the edit page?
- Ajax Search Lite: Customize Autoscroll
- 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
- Enqueue stylesheet in plugin for wp-login.php
- How to apply next/previous classes to LIs for pagination links?
- 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
- wp_enqueue_style for plugin options page
- 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]
- Flickering sidebar when scrolling page [closed]
- is it possible to hook every page style?
- Dequeue, Unregister, Remove Action – Not Working on Plugin
- 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
- Edit all $wp_scripts at once to $in_footer = false
- Strange admin-ajax / CSS / $_SESSION issue
- Menu not closing after clicking – WordPress – Elementor
- Enqueue css to a third-party plugin template
- wordpress plugin add page when activate
- How to add styles to a submenu page?
- inserting custom css, html and js into the current page as a popup window
- Apply only the css in my style.css file
- How get horizontal div instead vertical CSS
- SASS not showing in customized preloader plugin
- Why can I not deregister my style and script on custom post type?
- 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
- How to add php stylesheet to admin section instead of admin_head hook
- Like/Dislike Bar not working when updating
- Possible jquery / library conflict in plugin usage
- WordPress include scripts and style in plugin page
- How to activate/deactivate menu tab and keep the same id?
- plugin’s script and style enqueing not working on Thesis
- 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