My error. All I had to do was knock off the -css
and it worked.
Working code:
<?php
function dequeue_dequeue_plugin_style(){
wp_dequeue_style( 'plugin' ); //Name of Style ID.
}
add_action( 'wp_enqueue_scripts', 'dequeue_dequeue_plugin_style', 999 );
?>
Related Posts:
- How do I force wp_enqueue_scripts to load at the END of ?
- how to include other plugins css files in a shortcode?
- Get info (url) from already enqueued styles
- 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
- wp_enqueue_style specifics for overwriting plugin styles
- How to remove style and js from theme and add your own style and js where shortcode is used?
- Making a plugin only available on the front-end for the logged in super admin
- Bootstrap and Custom CSS in custom plugin are being overwritten by theme
- How to add CSS via custom plugin?
- Custom plugin – load enqueue only for this plugin
- Deregister scripts from plugin
- Custom CSS not being added by plugin
- Edit all $wp_scripts at once to $in_footer = false
- Edit all $wp_scripts at once to $in_footer = false
- Load CSS before Theme CSS
- wordpress plugin add page when activate
- Changing the CSS with a plugin
- Why can I not deregister my style and script on custom post type?
- WordPress include scripts and style in plugin page
- plugin’s script and style enqueing not working on Thesis
- Frontend Enqueued Files in the Backend
- 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
- Making sure that a plugin’s scripts and stylesheets are included for dynamicaly loaded content
- how to access all user dashboard on fronted page [closed]
- jQuery for custom plugin not working with Divi theme
- 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
- 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 can I remove the WordPress-Version (?ver=5.x) from my plugin
- Create shortcode to echo javascript
- How to use my menu PHP code as sidebar?
- Redirect to another page using contact form 7? [closed]
- Is there a loading priority for login_enqueue_scripts?
- Child theme stylesheet not always overriding “index”
- Edit External CSS
- Stop Plugin from Getting Styles from Other Plugin
- Enqueue stylesheet in plugin for wp-login.php
- Enqueuing a script before anything else
- 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
- Plugin Theme CSS [closed]
- Full list of registered scripts or styles, but from an admin options page
- Overwrite a plugin’s CSS?
- Why am I unable to load scripts in head in plugin?
- Combining several CSS files into one for optimization
- How to add a dvi tag to a shortcode then change a generated text using jQuery
- Deactivate JS Script in Plugin Shortcode
- how to prevent all css and javascripts files from loading
- Custom Plugin – CSS works, JS doesn’t
- Remove / overwrite some functions in buddypress.js
- 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
- Making that Admin Bar transparent or a blue color
- How to execute a plugin on a single page only?
- wp_enqueue_style for plugin options page
- How to limit image size for the entire website ? But without editing the post (css/plugin?!)
- Add type to enqueued script inside plugin
- Images under 1MB are not being compressed
- Skewed / slanted button within elementor [closed]
- plugin dev – minimum base css specificity?
- wp_dequeue_script for a Plugin
- How can I force Dynamic CSS via ACF values to update on page load?
- get specific value of a array | PHP
- 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]
- Override/ignore CSS from active theme as not to interfere with my custom CSS
- functions.php – inject inline css from file
- wp_enqueue_style on template_redirect level?
- Historical customisations won’t go away [closed]
- Flickering sidebar when scrolling page [closed]
- enqueing Javascript and CSS
- Load custom CSS before admin CSS
- Theme JS is available but theme CSS isn’t
- dynamic name of the style for wp_enqueue_style
- Is there a way to remove a tooltip of a plugin via custom CSS? [closed]
- Including CSS files in HEAD based on page content
- plugin enqueue style on all pages
- Adding a responsive grid onto a page (without using a Bootstrap theme) [closed]
- I want to set global directory locations for my CSS and JS locations. How?
- is it possible to hook every page style?