You can try this function.
function remove_all_theme_styles() {
global $wp_styles;
$wp_styles->queue = array();
}
add_action('wp_print_styles', 'remove_all_theme_styles', 100);
This should work on any theme, but its not really a good approach to disable theme css just to make your plugin look good.
Related Posts:
- 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?
- Why does wp_enqueue_style() in plugin not load stylesheet?
- how to include other plugins css files in a shortcode?
- How can I reduce the amount of files loaded/included per plugin?
- How can I dequeue a Plugin Stylesheet?
- Using standard backend elements in Plugin
- Using tabs for wordpress plugin
- 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?
- wp_enqueue_style in Plugin [duplicate]
- Quote rotator in the sidebar
- Styles and Scripts, Selectively enqueue across entire site
- Make the css of the widget overwrite theme css
- How can I enqueue a style only when a particular widget is active?
- 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?
- Prevent CSS/JS loading when plugin is not used
- 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?
- wp_enqueue_style specifics for overwriting plugin styles
- 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)
- ‘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?
- 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
- Globally register styles but enqueue them selectively
- CSS from textarea in options page to frontend what to do
- Customize CSS for “Swipebox ” lightbox
- 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
- Best use adding user generated JS/CSS to a theme with a plugin
- Site not displaying correctly when re-directing from root to sub-directory
- WordPress audio player add class randomly using Audio Album plugin
- Best way for overwriting plugin css with custom one
- Child Theme Changes Are Not Reflecting In Parent Theme
- How to set up php,javascript and css to allow for our finished product to be displayed within a page?
- Like/Dislike Bar not working when updating
- Possible jquery / library conflict in plugin usage
- disable lightbox in a plugin [closed]
- Display alt text as tool tip on page
- Overwrite CSS of Instaemail plugin popup
- contact 7 plugin stops some pages from working properly
- How to add different CSS for galleries
- How to activate/deactivate menu tab and keep the same id?
- MultiPostThumbnails and media queries
- Trouble After Update, Removing Plugin
- How to display a sitmap horizontally? [closed]
- How to load css files in a specific order
- Plugins to generate CSS Sprites? [closed]
- adding a css file to my plugin
- Element works, but not on wordpress site [duplicate]
- Eliminate Render blocking CSS?
- Trying to disable all notifications except for one on woocommerce checkout page with css [closed]
- How to Add a Website Background Image to One Page?
- Content expands beyond its column container [closed]
- Woocommerce Product Page Collapsible Box Using CSS
- How to modify submit button on GravityForms
- Can I merge all my JS and CSS in one file using WP?
- Option value not getting updated until page refresh in WordPress
- How to create a “Most Popular” & “Latest” TAB in WordPress
- 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
- Sudden ERR_HTTP2_PROTOCOL_ERROR on every JS and CSS files loads
- How to change css poperty through webhook in wordpress
- Dropdown menu only appearing when logged in
- Prevent part of plugin loading in another menu
- opening and closing elementor-widget-container
- Let Dokan / MulitvendorX vendors set currency per product. Best approach?
- How to disable hover zoom on woocommerce. None of the common methods work
- CSS: Help! Need help with icon centering in Divi
- Struggling to edit the width of text in ‘Variations’ template
- How to ajaxify all pages of my Wp Site
- How to resolve Multisite Speed issues