There’s no need for more code in your functions.php file to enqueue the parent themes css from your child theme. The problem is that by adding that code, you’re enqueueing the parent theme’s CSS a second time, but it’s now loading after the child theme. This means that all the changes you made in the child theme will have no effect.
Simply remove that line and you should see the changes in your child theme.
Added:
Here are the two files I used with only the basics to properly enqueue the child theme css.
style.css file:
/*
* Theme Name: HashOne Child
* Template: hashone
* Text Domain: hashone-chile
*/
functions.php file:
<?php
add_action( 'wp_enqueue_scripts', function() {
wp_enqueue_style( 'hashone-parent-style', get_template_directory_uri() . '/style.css' );
});
Related Posts:
- Versioning @import of parent theme’s style.css
- how do I queue my Child stylesheet/s *after* every Parent stylesheet/statement?
- Issues enqueueing parent & child theme stylesheets with revised Codex method
- Give priority to child theme stylesheet
- Get parent theme version
- How to use parent theme’s enqueue methods
- Style.css in child theme is loaded before Bootstrap
- Find a Parent Theme’s stylesheet $handle when it registers a stylesheet
- Order of stylesheets in child theme
- why this media query is not working / not loading when I put it in child theme?
- 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?
- get_template_directory_uri() links to child theme not parent
- Why are my parent styles loading after my child styles?
- How to activate the child theme in WordPress?
- How to create my own style.css file in an wordpress child-theme
- Attributing a version number to a child theme’s main stylesheet
- Theme Customization API and child themes
- Get Parent Theme Author Name
- Do all files in child theme override the parent?
- Do I need to update the child theme too after updating the parent?
- How to maintain wp_enqueue_style dependencies set in parent theme style enqueuing
- Use admin options from parent theme in child theme
- How Can I Use A Child Theme Effectively When Parent’s CSS Is Located in a ‘CSS folder’?
- How to “remove” file from parent theme
- Child Theme CSS Not Overriding Parent Theme In MultiSite Site
- How can I make new .css file in child theme override styles in child theme’s style.css
- Disable child theme css on certain pages
- Enqueue styles properly in a child theme and stylesheets location
- Child Theme Not Overriding Parent Theme
- How are updates to the style.css file in child theme recognized?
- How do I set up a child-theme without using @import
- Understanding child theme functions.php
- Overwrite CSS with without deleting it
- De-registering parent style sheet css recommended?
- How to change Parent Themes in Child Theme CSS
- Enqueue stylesheets if parent theme has more than one .css file
- How can I remove css from a child theme?
- ERROR MESSAGE: Missing index.php—Child Theme
- Priority loading file css in child theme
- Is my child theme working properly
- Child theme style repeated
- Localization: Textdomain of Child teme
- How to load parent theme style.css?
- 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
- How do I override a sidebar that is registered in a parent theme when using a child theme?
- WordPress Child theme’s css not loading
- Remote install won’t find Parent theme when intalling Child Theme, but local install does
- Different ways to load child theme css
- Parent theme CSS overriding child CSS rules
- How do add a the style-mobile css from the main theme to the child theme?
- Child theme style.css isn’t overwriting parent style.css
- Confused about how to use wp_enqueue_style
- How to use custom stylesheet only for a template in child theme
- Help with child theme enqueuing additional css files
- Child theme problem
- How to create a parent theme for accesspress parallax theme?
- Child Theme with multiple css files
- Child theme stylesheet not always overriding “index”
- Child style loads before all parent styles
- Child Theme CSS not showing at all
- What is the correct workflow for modifying child themes?
- What are the best practices for maintaining and deploying several parent themes?
- Which is the child theme and which is the parent theme?
- Creating a child theme: How do I find the template name of the parent directory?
- CSS getting injected into index from somewhere after theme/custom CSS is loaded, overriding all of my CSS [closed]
- Parent theme styles overriding child theme CSS [closed]
- Child theme not importing parent styles
- Creating child theme out of Coeur
- How to make child theme in wordpress with wp_enqueue_style ? Using Enough Theme
- Set a link in child theme style.css to jump to #main [closed]
- Free theme and css/bootstrap.css is not overridden in the child theme
- WordPress + Child Theme = Am I missing something?
- Stylesheet overriding in Child theme
- Two stylesheets acting on one element
- Referencing parent theme image from child theme
- Override file in parent theme
- WordPress Child Theme – twentyeleven
- Modify Twentyeleven child theme CSS – How to change body font size?
- Child Theme style.css changes aren’t showing. Parent “style-less.css” over rides it, and won’t update
- Can only override parent theme styling with ‘!important’ in child style.css
- Why would the child theme load in the Customize preview, but not on the site itself?
- Can I place “parent theme” inside a child theme folder?
- Why does using wp_register_style without wp_enqueue load and print CSS tags in the front-end?
- Dequeing Parent Fontawesome Deques Parent Styles
- Remove Stylesheet by URL that has not been enqueued
- How to enqueue multiple style sheets into my child theme in wordpress (oceanwp)
- My Child Theme CSS Isn’t Working
- How do I create a child theme from PowerMag theme
- Font size decreases when child theme is created from parent theme?
- Child Theme not loading multiple stylesheets
- how to fix loading scripts in child theme?
- How to override styles from child theme if all the styles are in a folder?
- Can I still switch to a child theme?
- CSS in child theme to replace !important in parent theme
- Strange Theme Error – parent style occasionally showing though child theme
- Modify arguments for parent theme’s `wp_register_style` via child theme
- Browser stacks different versions of style.css
- How to add modified php in child theme?