This is not a very smart thing to do. As you noted yourself, you’ll have issues when the parent theme is updated. Moreover, the parent theme might have secondary stylesheets that depend on the parent style (third parameter in wp_enqueue_style
). There might be javascript that assumes it’s there. In other words: it will take very thorough analysis of the parent theme to make sure you’re not messing up something.
The upside is small. Yes, you’ll have one file request less, but that’s not a lot these days. Even a big css file usually is smaller in terms of kb than the images. And browsers won’t choke on multiple css layers. Javascript is a bigger concern.
Simply said: it’s not worth bothering about this.
Related Posts:
- How important is it to enqueue a theme’s stylesheet?
- Enqueue a stylesheet for login page and make it appear in head element
- Hide a div that is part of all pages on one specific page
- Why I can’t add a CSS style in this WordPress theme?
- add generated stylesheet from parent theme after child-themes style.css
- Adding inline styles from a widget
- CSS in child theme not overriding the parent theme [closed]
- Enqueued Stylesheets Effecting Admin Styles
- enqueue_style is not working
- Dequeue a style file which is making website load slow!
- Child theme style.css versioning
- Theme Loading Into Dashboard
- How to check if a WordPress core block is active in sidebar
- Font Awesome 5 Free – far working but fas is not? [closed]
- How remove render blocking css from wordpress when you build a theme?
- filemtime(): stat failed warning within a child theme
- How do I use a color from theme options?
- Ideal inline dynamic CSS injection
- Having issue with WordPress wp_enqueue_style
- theme style is applied on the dhasboard rather than the website
- How to override template files in parent theme?
- LESS not working in WordPress [closed]
- How can I fix my theme header for my CSS stylesheet?
- adding navigation to genesis themes
- How to add CSS class to custom logo?
- Adding customizer styles with wp_add_inline_style
- Best practices – Should I create a child theme vs. customizing a framework theme? (such as HTML5 reset)
- Child Theme not loading parent CSS
- What can I hook into after_setup_theme?
- Why max-width:97.5% on content images?
- add_image_size is scaling, even though crop is set to true
- Setting up partial Right-to-Left admin interface
- Can’t edit style.css in subdirectory of my theme?
- Adding dashicon fonts to the admin of pre 3.8 installs
- How do I get a parent theme modification from a child theme?
- Child Theme Not Overriding Parent Theme
- Move my theme style.css into a folder
- WordPress website loads but is not displayed until page scrolled
- wp_head() not inserting the default stylesheet style.css
- How to keep my custom theme changes after updating genesis child theme
- First completely customized theme, where should I start?
- Whats the safest way to output custom JavaScript and Css code entered by the admin in the Theme Settings?
- Override Constants in Child theme
- WordPress 5.8 update problem custom theme styles are overridden by core styles common.min.css
- CSS won’t style output of wp_nav_menu() correctly
- Child themes: disabling the parent
- Weekly background code not working
- How to add theme support?
- Multiple Page Templates & CSS
- Divi Child Theme not appearing in “Themes” [closed]
- Different ways to load child theme css
- Select full Image Size on widget “Genesis – Featured Posts”
- How to add material design css in wordpress and woocommerce
- changing blog title to an image using filter function in child theme
- How to get javascript slider to work! [closed]
- What is the meaning of WordPress’s recommended css classes and where are they applied?
- How to properly create a child theme
- Renaming a theme so it aids SEO and the theme used is hidden
- How to rotate every letter in a title
- Will my site get messed up when the wordpress theme updates if I edited the html code in the editor to change footer?
- How to correctly enqueue the parent and child theme stylesheets in the creation of a child theme? [duplicate]
- Why would changing a child theme to a normal theme pass a Template is missing. error
- Making a child theme for “Airi”
- How to change footer credit text in Twenty Twenty One theme with a hook?
- Why is switching between themes breaking my child theme?
- How to style bootstrap container in wordpress theme?
- Is There A WordPress Hook for Accessing Attachments for A Particular Page?
- Place title (in correct place) above image with opaque background [closed]
- Different themes on one site
- CSS preprocessor file messed up after compiled
- my single.php is mixup on some post for no reason
- How to use the _S framework
- Why nav_menu_css_class doesn’t work with apply_filters?
- Default customizer colors aren’t displayed outside of the preview
- Find out the reason that the Styles and scripts in the theme are loading properly in localhost but Not in server after deploying
- Block validation failed for `core/pullquote` after adding theme support for editor-color-palette
- Where i must put hooks in overridable functions?
- Is_single not working properly in genesis
- Child Theme not loading multiple stylesheets
- Debugging slow WordPress Theme Customizer (Any option similar to Query Monitor)?
- overlay post title over post’s featured image
- Child theme in separate WordPress Install
- Change header image on a particular page
- Update modified Shopify third-party theme [closed]
- Change site title color on individual pages
- How to show children pages as array
- Hook in parent theme Menu function
- How do child themes work?
- Why WordPress gets old templates code instead of the last updated ones
- Why are my parent styles loading after my child styles?
- Enqueue Stylesheets After Theme’s “rtl.css”
- WordPress 3.5 + Foundation 5 not working on IE9
- Any disadvandages if I style the wordpress align classes without img and .wp-caption prefix
- Header is not showing full width
- What to do when child theme is out of date with parent theme
- Image Size wrong during upload
- Twenty sixteen – full height
- ways to create customized theme (hard coded – no pagebuilder)
- Modifying posts based on category in TwentyTwentyTwo theme
- Align images to the left of the content