Title: Parent theme custom css not loading
Last modified: May 1, 2018

---

# Parent theme custom css not loading

 *  [yerim25](https://wordpress.org/support/users/yerim25/)
 * (@yerim25)
 * [8 years, 5 months ago](https://wordpress.org/support/topic/parent-theme-custom-css-not-loading/)
 * Hi,
    I activated my child theme, functions.php and style.css works well. but 
   all the custom CSS codes are not showing on the website. Even widgets and the
   logo image disappeared.
 * below is functions.php of the child theme:
 *     ```
       <?php
   
       // Queue parent style followed by child/customized style
       add_action( 'wp_enqueue_scripts', 'func_enqueue_child_styles', 99);
   
       function func_enqueue_child_styles() {
           wp_enqueue_style( 'parent-style', get_template_directory_uri() . '/style.css' );
           wp_dequeue_style('shopper');
           wp_enqueue_style( 'shopper',
               get_stylesheet_directory_uri() . '/style.css',
               array('parent-style')
           );
       }
       ```
   
 * Is there something wrong in the code? Or is there anything I have to do to import
   the parent theme CSS?
 * Thank you in advance.
    -  This topic was modified 8 years, 5 months ago by [yerim25](https://wordpress.org/support/users/yerim25/).

Viewing 11 replies - 1 through 11 (of 11 total)

 *  [HudsonValleyWebDesign](https://wordpress.org/support/users/jaycbrf/)
 * (@jaycbrf)
 * [8 years, 5 months ago](https://wordpress.org/support/topic/parent-theme-custom-css-not-loading/#post-10235596)
 * This is the actual code from [https://codex.wordpress.org/Child_Themes](https://codex.wordpress.org/Child_Themes)
 *     ```
       <?php
       function my_theme_enqueue_styles() {
   
           $parent_style = 'parent-style'; 
   
           wp_enqueue_style( $parent_style, get_template_directory_uri() . '/style.css' );
           wp_enqueue_style( 'child-style',
               get_stylesheet_directory_uri() . '/style.css',
               array( $parent_style ),
               wp_get_theme()->get('Version')
           );
       }
       add_action( 'wp_enqueue_scripts', 'my_theme_enqueue_styles' );
       ?>
       ```
   
 *  Thread Starter [yerim25](https://wordpress.org/support/users/yerim25/)
 * (@yerim25)
 * [8 years, 5 months ago](https://wordpress.org/support/topic/parent-theme-custom-css-not-loading/#post-10235607)
 * I copied and pasted the code, and changed $parent_style to ‘shopper-style’.
    
   But it still doesn’t work.
 *  [Andrew Nevins](https://wordpress.org/support/users/anevins/)
 * (@anevins)
 * WCLDN 2018 Contributor | Volunteer support
 * [8 years, 5 months ago](https://wordpress.org/support/topic/parent-theme-custom-css-not-loading/#post-10235622)
 * Didn’t you say you solved this? [https://wordpress.org/support/topic/child-theme-doesnt-work-12/?view=all](https://wordpress.org/support/topic/child-theme-doesnt-work-12/?view=all)
 *  [Andrew Nevins](https://wordpress.org/support/users/anevins/)
 * (@anevins)
 * WCLDN 2018 Contributor | Volunteer support
 * [8 years, 5 months ago](https://wordpress.org/support/topic/parent-theme-custom-css-not-loading/#post-10235624)
 * My bad I didn’t read properly
 *  [Andrew Nevins](https://wordpress.org/support/users/anevins/)
 * (@anevins)
 * WCLDN 2018 Contributor | Volunteer support
 * [8 years, 5 months ago](https://wordpress.org/support/topic/parent-theme-custom-css-not-loading/#post-10235629)
 * There isn’t any CSS inside your Child Theme style.css file: [http://yerimk.sgedu.site/wp-content/themes/shopper-child/style.css?ver=4.9.5](http://yerimk.sgedu.site/wp-content/themes/shopper-child/style.css?ver=4.9.5)
 * Where are you putting the Custom CSS if not the Child Theme style.css file?
 *  Thread Starter [yerim25](https://wordpress.org/support/users/yerim25/)
 * (@yerim25)
 * [8 years, 5 months ago](https://wordpress.org/support/topic/parent-theme-custom-css-not-loading/#post-10235647)
 * I am using the child theme only for customizing some PHP codes, so I want all
   the custom CSS styles in the parent theme to load.
 * I read that first the parent theme css loads, and then the child theme css style
   loads. But in my case, the parent theme custom css doesn’t seem to be loaded.
    -  This reply was modified 8 years, 5 months ago by [yerim25](https://wordpress.org/support/users/yerim25/).
 *  [Andrew Nevins](https://wordpress.org/support/users/anevins/)
 * (@anevins)
 * WCLDN 2018 Contributor | Volunteer support
 * [8 years, 5 months ago](https://wordpress.org/support/topic/parent-theme-custom-css-not-loading/#post-10235658)
 * I don’t understand what you mean by parent theme custom css.
 * Usually:
    Parent theme _style.css file_ loads; Child theme _style.css file_ loads;
 * What do you mean by “custom css”, are you using the “Additional CSS” section 
   of the dashboard or are you using a plugin for this, or are you referring to 
   an option specific to your theme?
 *  Thread Starter [yerim25](https://wordpress.org/support/users/yerim25/)
 * (@yerim25)
 * [8 years, 5 months ago](https://wordpress.org/support/topic/parent-theme-custom-css-not-loading/#post-10235676)
 * Yes I meant additional CSS. And many things I set at Appearance – Customize have
   disappeared, like colors, widgets, logo image.
 *  [Andrew Nevins](https://wordpress.org/support/users/anevins/)
 * (@anevins)
 * WCLDN 2018 Contributor | Volunteer support
 * [8 years, 5 months ago](https://wordpress.org/support/topic/parent-theme-custom-css-not-loading/#post-10235750)
 * You will have to re-set widget options, as is the case when switching to themes
   in general.
 * The Additional CSS should load after the parent theme and child theme style.css
   files and should not be affected by the use of a Child Theme, because it is not
   a theme-specific option. It is an option in WordPress Core.
 * If* Additional CSS is no longer working as a direct action of creating a Child
   Theme, I’m afraid you may be facing an issue with the theme you’re using. This
   should not normally happen.
    -  This reply was modified 8 years, 5 months ago by [Andrew Nevins](https://wordpress.org/support/users/anevins/).
 *  Thread Starter [yerim25](https://wordpress.org/support/users/yerim25/)
 * (@yerim25)
 * [8 years, 5 months ago](https://wordpress.org/support/topic/parent-theme-custom-css-not-loading/#post-10235788)
 * Thank you! I will try another theme. Am I supposed to re-set the colors as well?
 *  [HudsonValleyWebDesign](https://wordpress.org/support/users/jaycbrf/)
 * (@jaycbrf)
 * [8 years, 5 months ago](https://wordpress.org/support/topic/parent-theme-custom-css-not-loading/#post-10243459)
 * ALL CUSTOM CSS HAS TO GO IN THE CHILD THEME

Viewing 11 replies - 1 through 11 (of 11 total)

 The topic ‘Parent theme custom css not loading’ is closed to new replies.

## Tags

 * [child theme](https://wordpress.org/support/topic-tag/child-theme/)
 * [parent theme](https://wordpress.org/support/topic-tag/parent-theme/)
 * [php](https://wordpress.org/support/topic-tag/php/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 11 replies
 * 3 participants
 * Last reply from: [HudsonValleyWebDesign](https://wordpress.org/support/users/jaycbrf/)
 * Last activity: [8 years, 5 months ago](https://wordpress.org/support/topic/parent-theme-custom-css-not-loading/#post-10243459)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
