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 define and link full path to css located at a random folder on header.php
- Using wp_add_inline_style without a stylesheet
- How to add CSS class to custom logo?
- How to add custom css file in theme?
- CSS not updating in browser when I change it
- Solutions for generating dynamic javascript / CSS
- how can I add an icon/image for a child theme?
- Do I actually need to link my theme’s style.css in the theme files
- WooCommerce shop page to use my custom template [closed]
- CSS classes for theme
- How do I cleanly override a plugin’s CSS with a child theme?
- My child theme doesn’t work Error: “The parent theme is missing. Please install your parent theme”
- Generating CSS Files Dynamically Using PHP Scripts?
- Why is the Child Theme Stylesheet Not Loading?
- Enqueue Stylesheets After Theme’s “rtl.css”
- Child Theme vs Duplicate Theme Renamed
- Are the WordPress Core CSS styles really all nessesary?
- Understanding wp_add_inline_style
- Any alternate TinyMCE4 themes / subthemes?
- Splitting WordPress theme CSS into multiple files, good or bad?
- How to add Color Picker in Theme Options for the following?
- Can’t get staging site to display same way as live site. Completely stumped
- How to make a theme with more than one CSS file?
- Give priority to child theme stylesheet
- The difference between calling wp_enqueue_scripts to load scripts and styles in custom theme
- Editing the custom background CSS
- Adding Action Hooks In Parent Theme For Easier Child Theme Customization
- Is the theme customizer slowing down my site?
- Adding customizer styles with wp_add_inline_style
- How to edit bbPress template files – WordPress + BuddyPress + bbPress? [closed]
- Best practices – Should I create a child theme vs. customizing a framework theme? (such as HTML5 reset)
- How to edit an existing WordPress theme? [closed]
- Add colors to existing color palette without replacing it
- Child Theme not loading parent CSS
- What can I hook into after_setup_theme?
- Suggestions for creative use of post format feature, or themes that use them well
- Add class to before_widget for all widgets with a dropdown and a counter
- Why max-width:97.5% on content images?
- Add a preview to a WordPress Control Panel
- add_image_size is scaling, even though crop is set to true
- Identifying the priority of style.css so I can make a small CSS file load last
- use add_action(‘wp_head’) in a widget for generating dynamic CSS styles
- why does twenty eleven theme mix up the css measurement units?
- Setting up partial Right-to-Left admin interface
- Change Genesis Tag from Page Template [closed]
- How do I get my child-theme to work with my theme’s includes folder?
- Can’t edit style.css in subdirectory of my theme?
- Adding dashicon fonts to the admin of pre 3.8 installs
- The best way to add stylesheets to WordPress
- How to Handle CSS for Multiple Header header.php Files?
- How do I get a parent theme modification from a child theme?
- How Can I Use A Child Theme Effectively When Parent’s CSS Is Located in a ‘CSS folder’?
- How to add (css) classes to only one wp_nav_menu()?
- Advantages of using instead of wp_enqueue_style()?
- Disable child theme css on certain pages
- Modifying JS files in Child-theme
- Child Theme Not Overriding Parent Theme
- Adding dashicon fonts to the admin of pre 3.8 installs
- How to add dynamic inline style?
- Optimal solution to develop a wordpress theme?
- Move my theme style.css into a folder
- Style.css in child theme is loaded before Bootstrap
- Convert a static website to a WordPress theme and import all existing content
- How to keep theme layout the same when admin gray bar is present?
- When developing a distributable Theme, does it HAVE to be “inheritable”?
- Custom CSS In Uploads Folder
- WordPress website loads but is not displayed until page scrolled
- There’s an image named g.gif somewhere in my WordPress site
- wp_head() not inserting the default stylesheet style.css
- How to highlight the current page in the nav menu?
- Nesting Functions within Functions
- Should I update my _s theme?
- Writing Clean WooCommerce Styles
- Prevent CSS/JS loading when plugin is not used
- Understanding child theme functions.php
- Create a theme by combining a parent and a child theme