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?
- How can I use WordPress functions in my stylesheet?
- 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 do I force wp_enqueue_scripts to load at the END of ?
- Why does wp_enqueue_style() in plugin not load stylesheet?
- How can I reduce the amount of files loaded/included per plugin?
- Using standard backend elements in Plugin
- Using tabs for wordpress plugin
- How to load different css file for different pages
- Get info (url) from already enqueued styles
- Override CSS settings of plugins
- How can I make content disappear when a user logs in?
- Add CSS animation as Preloader to WordPress
- Best way to inject css into admin_head in plugins?
- Quote rotator in the sidebar
- Plugin throws up 404 on front-end when when enqueuing style with filetime
- Styles and Scripts, Selectively enqueue across entire site
- 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?
- How do I register a stylesheet inside a WordPress widget?
- Override Theme CSS with CSS from a plugin
- 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?
- How to override my plugin’s php classes with duplicates that are in my child theme folder
- 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)
- Is it possible to enqueue CSS files from plugin before theme’s CSS files?
- ‘Customize’ button in admin bar for CSS
- Why isn’t “background-image: url”working with Bootstrap carousel on WP?
- How to add page using HTML, CSS and JS?
- How to generate CSS from a shortcode within a plugin
- Add stylesheets and js to template files when shortcode is used
- Custom CSS for plugin form
- How do I modify the position of a plugin?
- How to make wp_enqueue_style and wp_enqueue_script work only on custom post type
- How to remove style and js from theme and add your own style and js where shortcode is used?
- plugin style conflicts, how to override? [closed]
- Is there an earlier hook than login_head or login_enqueue_scripts?
- 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
- Globally register styles but enqueue them selectively
- CSS from textarea in options page to frontend what to do
- custom changes removed after plugin update
- W3 Total cache “empty all caches” and no stylesheets render [closed]
- Making a plugin only available on the front-end for the logged in super admin
- Admin Panel pagination link styles
- How to style the RSS wordpress?
- 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]
- How to remove plug in styles for WPForms Lite [closed]
- WPBakery JS composer unused css [closed]
- How to tie dark mode with prefers-color-scheme webkit? [closed]
- Trouble with plugin styles in admin area of WordPress
- Add a CSS class based on categroy id to archive pages
- Changing “elapsed time” to “time remaining” on MP3-jPlayer audio player with CSS or PHP changes
- Child Pages Short Code plug-in and hover capabilities?
- Removing included CSS file that doesn’t exist
- How to hide CSS by default and show on button press
- (Sticky Row) How do i make a row sticky in wpbakery page builder?
- How to create an input field, and base the output on spreadsheet data? [closed]
- 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?
- Bootstrap and Custom CSS in custom plugin are being overwritten by theme
- Ajax Search Lite: Customize Autoscroll
- Delete mobile menu button [closed]
- Widgets Scripts don’t load – but load when I reload the page
- Can’t catch enqueued style
- Ability to automatically redirect a URL
- Adding Font Awesome to WP Plugin
- How to get DEFER or ASYNC attribute to appear when I add a stylesheet with wp_enqueue_style from a plugin? [duplicate]
- Which filter affects the ‘entry-title’ post class
- Adding CSS to custom post type admin page causes error
- How to use my menu PHP code as sidebar?
- Redirect to another page using contact form 7? [closed]
- Edit External CSS
- Stop Plugin from Getting Styles from Other Plugin
- Enqueue stylesheet in plugin for wp-login.php
- How do I use add_action on custom widget?
- Why Do I get “wp_remote-get: could not handle for fopen()”?
- How to apply next/previous classes to LIs for pagination links?
- Override plugin styles via my custom theme