Any changes you make to the plugin’s stylesheet will be overwritten when you update the plugin. Likewise with an edit to the theme’s stylesheet. Even if you create your own stylesheet and enqueue it via functions.php you will have redo the enqueueing when you update. Of course, if this is a theme (or child theme) of your own creation that isn’t a problem.
If you aren’t maintaining your own theme, or child theme, there isn’t a great way to do this, in my opinion. It would be nice if there were a global “user-functions.php” file. The closest thing to that that I can think of is a “must use plugin”, and I guess that is probably what I’d recommend.
- Create a directory called
mu-pluginsinwp-content - Create a file in that directory and add your functions to it.
See the Codex page for details about Must-Use Plugins. They do not behave exactly like ordinary plugins.
Related Posts:
- 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?
- Why does wp_enqueue_style() in plugin not load stylesheet?
- How can I reduce the amount of files loaded/included per plugin?
- How can I dequeue a Plugin Stylesheet?
- Add CSS animation as Preloader to WordPress
- Best way to inject css into admin_head in plugins?
- Prevent CSS/JS loading when plugin is not used
- 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
- Is it possible to use Snap Scrolling? [closed]
- Image resizing on home page (product category) [closed]
- W3 Total Cache: Load CSS asynchronously for better PageSpeed score? [closed]
- How do I write into a file (css)
- Why isn’t “background-image: url”working with Bootstrap carousel on WP?
- Custom CSS for plugin form
- How do I modify the position of a plugin?
- 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
- Remove ALL css for a specific plugin page
- 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]
- Child Pages Short Code plug-in and hover capabilities?
- How to hide CSS by default and show on button press
- WordPress plugin output formatting
- 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
- 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 do I use add_action on custom widget?
- How to apply next/previous classes to LIs for pagination links?
- Override plugin styles via my custom theme
- How to add CSS via custom plugin?
- Overwrite a plugin’s CSS?
- how to prevent all css and javascripts files from loading
- Front-end CSS Library for plugin [closed]
- Infinite scroll messing up nth:of-type
- Wooslider custom css
- How to execute a plugin on a single page only?
- How to limit image size for the entire website ? But without editing the post (css/plugin?!)
- Images under 1MB are not being compressed
- How to make a dynamic css class whose name changes every visit to confuse scraper
- Is there a way to remove a tooltip of a plugin via custom CSS? [closed]
- Adding a responsive grid onto a page (without using a Bootstrap theme) [closed]
- Is wp_deregister_script the best way to deal with unneeded plugins in a page?
- Custom CSS not being added by plugin
- 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
- How to theme code blocks formatted by the prettify.js embedded with WP-Markdown?
- CSS/JS files in WordPress
- How do I override all stylesheets and scripts without a plugin
- 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
- How to change the WordPress Plugin Watson Assistant Chatbot BOX Size?
- 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
- make p tag collapsed after 3 rows
- General Term for this form Field
- Implementing Scrollable Images
- wp plugin adds “pagespeed.css” after each css file
- How to fix shifting header after installing speed / cache plugins?
- 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]
- Get plugin to background of page
- Speed issues because of CSS & JavaScript
- Like/Dislike Bar not working when updating
- Possible jquery / library conflict in plugin usage
- disable lightbox in a plugin [closed]
- 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
- adding a css file to my plugin
- Element works, but not on wordpress site [duplicate]
- Content expands beyond its column container [closed]
- How to modify submit button on GravityForms
- Option value not getting updated until page refresh in WordPress
- How to create a “Most Popular” & “Latest” TAB in WordPress