I solved the problem myself with this code:
function remove() {
wp_dequeue_style( 'twentytwenty-style' );
wp_deregister_style( 'twentytwenty-style' );
wp_dequeue_style('twentytwenty-child-style', get_stylesheet_directory_uri() . '/style.css', array('twentytwenty-child-style'));
wp_dequeue_style( 'twentytwenty-print-style' );
wp_deregister_style( 'twentytwenty-print-style' );
}
add_action( 'wp_print_styles', 'remove', 100 );
Related Posts:
- Issues enqueueing parent & child theme stylesheets with revised Codex method
- Why is the Child Theme Stylesheet Not Loading?
- Give priority to child theme stylesheet
- Get parent theme version
- How to use parent theme’s enqueue methods
- How to maintain wp_enqueue_style dependencies set in parent theme style enqueuing
- Enqueue styles properly in a child theme and stylesheets location
- Style.css in child theme is loaded before Bootstrap
- How are updates to the style.css file in child theme recognized?
- How do I set up a child-theme without using @import
- Find a Parent Theme’s stylesheet $handle when it registers a stylesheet
- Dequeue only stylesheets but not inline style added using wp_add_inline_style
- Enqueue stylesheets if parent theme has more than one .css file
- ERROR MESSAGE: Missing index.php—Child Theme
- Priority loading file css in child theme
- Is my child theme working properly
- Child theme style repeated
- How to NOT call Font Awesome or font icons in WordPress
- @font-face broken in child theme
- Prevent a base themes css file from loading
- WordPress Child theme’s css not loading
- Confused about how to use wp_enqueue_style
- Child style loads before all parent styles
- How can I get this child theme stylesheet to properly load? Or if it is correct, why doesn’t my child theme appearance match the parent?
- How to make child theme in wordpress with wp_enqueue_style ? Using Enough Theme
- Can only override parent theme styling with ‘!important’ in child style.css
- Why does using wp_register_style without wp_enqueue load and print CSS tags in the front-end?
- Remove Stylesheet by URL that has not been enqueued
- How to enqueue multiple style sheets into my child theme in wordpress (oceanwp)
- how to fix loading scripts in child theme?
- Why won’t my Custom CSS Load
- How to create my own style.css file in an wordpress child-theme
- Versioning @import of parent theme’s style.css
- How to add code to Header.php in a child theme?
- Why does my child theme CSS get called twice?
- Hiding Parent Theme
- how to call files in child theme?
- Child theme showing a blank page
- Child theme preview missing
- How can you change default color scheme in a Twenty Fifteen child theme?
- I created a child theme and it doesn’t work for some of the css files
- Child Theme Not Overriding Parent Theme
- Proper way to make a tweaked theme into child-theme setting?
- How to override enqueued styles using a child theme
- Recommended way to load / enqueue parent and child stylesheet to enable cache busting
- HTML head-tag get broken in my child theme
- iPhone Safari full size & PC versions different
- Child theme style.css versioning
- How to add child theme after using parent theme for long
- Child them function.php ‘parent-style’: should I name this as parent theme name?
- Remote install won’t find Parent theme when intalling Child Theme, but local install does
- Different ways to load child theme css
- configuration for child theme
- How do add a the style-mobile css from the main theme to the child theme?
- Child Header.php Not Showing On Other Pages
- WOW.js animations work on one server, copied to new server, and stop working [closed]
- GET parent theme throws 500 error in console, site works fine
- colorpicker WP 3.5 path to stylesheet when called from a child theme
- add function to thematic hooks [closed]
- All Titles and Menus changed to “CHILD THEME LOADED”
- Override post-formats in child theme
- Which is the child theme and which is the parent theme?
- Is there any way to put the Google Tag manager Identification code into the child theme?
- Creating a child theme: How do I find the template name of the parent directory?
- Modifying a child theme
- In modifying a file in a subfolder in a child theme, do I need all the files in that sub folder in my child?
- design has been broken in WordPress child theme [closed]
- Creating child theme out of Coeur
- Is this the correct way to enqueue style sheets from parent theme and then from child theme in wordpress?
- Changing a Child theme’s name on MAMP localhost
- get_template_directory_uri() links to child theme not parent
- Set a link in child theme style.css to jump to #main [closed]
- Can’t create child themes. “Stylesheet is not readable.”
- use child theme for mobile version
- Google Analytics on a staging site
- Show excerpt and not full post in Twenty Seventeen
- Fatal error: Cannot redeclare load_stylesheets() (previously declared in
- How to set a custom post type as home page and set post page to regular post?
- Updating an imported child theme from the wp-admin UI
- “Cannot modify header information – headers already sent by” while using get_stylesheet_directory_uri()
- How do I create a child theme from PowerMag theme
- Font size decreases when child theme is created from parent theme?
- How to get custom translations from child theme to be loaded?
- Admin options from parent theme do not bind
- using a child theme, after enqueing my js file it is loading before jquery
- Can I still switch to a child theme?
- How can I load child theme stylesheet with cache busting string and remove same stylesheet loaded by parent theme?
- Need help installing Hoffman child theme
- Changing header banner dimension in child theme
- child index.php does not overwrite parent index.php in twenty fourteen theme
- How to prevent funny characters on Home Page
- custom template – override plugin template in child theme – issue with scripts
- WordPress picks parent theme’s home page template instead of the child theme one
- What the mean about ‘child theme’?
- Child theme template value for style.css for parent in different folder
- Run two concurrent themes in one installation
- Selling a child-theme of twenty-thirteen is legal? [closed]
- What is __(arguments) in my functions.php
- How to override a theme template file with a child theme template file (of the same name)
- melville and its child theme