Title: Child theme problems
Last modified: August 24, 2016

---

# Child theme problems

 *  Resolved [ryanmacmorris](https://wordpress.org/support/users/ryanmacmorris/)
 * (@ryanmacmorris)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/child-theme-problems-10/)
 * I tried to use a child theme to customize the css of some portions but it seems
   that it is always overridden by the parent theme. I used the child theme plugin
   to create the child theme and have successfully changed things through the functions.
   php and the front-page template but am unable to do an changes via css. Is there
   a way I should be calling the stylesheets in other than with the default child
   theme php? My site is [http://www.ryanmacmorris.com](http://www.ryanmacmorris.com)
   and if you look at the source you can see that the css are getting called in 
   an odd order it seems to me.

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

 *  [CrouchingBruin](https://wordpress.org/support/users/crouchingbruin/)
 * (@crouchingbruin)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/child-theme-problems-10/#post-6178783)
 * The problem is that you have a syntax error in your child theme’s style.css file:
 *     ```
       }
   
       .blog .hentry a.button {
          background-color: #bb00bb;
       }
       ```
   
 * Remove the stray right brace at the very top and your Read More buttons will 
   turn purple.
 *  [CrouchingBruin](https://wordpress.org/support/users/crouchingbruin/)
 * (@crouchingbruin)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/child-theme-problems-10/#post-6178785)
 * And yes, there’s something else wrong because your child theme’s stylesheet is
   being linked in twice. Not sure if it was caused by the plugin, but how is your
   functions.php file enqueuing your stylesheets? You may not need to enqueue the
   child theme’s style.css file since it’s already being included.
 *  Thread Starter [ryanmacmorris](https://wordpress.org/support/users/ryanmacmorris/)
 * (@ryanmacmorris)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/child-theme-problems-10/#post-6178807)
 * This is my entire functions.php file and I believe the default functions.php 
   of the child theme plugin.
 *     ```
       <?php
       //
       // Recommended way to include parent theme styles.
       //  (Please see http://codex.wordpress.org/Child_Themes#How_to_Create_a_Child_Theme)
       //
       add_action( 'wp_enqueue_scripts', 'theme_enqueue_styles' );
       function theme_enqueue_styles() {
           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')
           );
       }
       //
       // Your code goes below
       //
       ```
   
 *  [CrouchingBruin](https://wordpress.org/support/users/crouchingbruin/)
 * (@crouchingbruin)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/child-theme-problems-10/#post-6178896)
 * Since it looks like the parent theme is already enqueing the child theme’s stylesheet,
   remove the enqueing of it in your child theme’s function.php file, so it looks
   like this (i.e., you only need to enqeue the parent theme’s stylesheet):
 *     ```
       <?php
       //
       // Recommended way to include parent theme styles.
       //  (Please see http://codex.wordpress.org/Child_Themes#How_to_Create_a_Child_Theme)
       //
       add_action( 'wp_enqueue_scripts', 'theme_enqueue_styles' );
       function theme_enqueue_styles() {
           wp_enqueue_style( 'parent-style', get_template_directory_uri() . '/style.css' );
       }
       //
       // Your code goes below
       //
       ```
   
 * And don’t forget to correct the syntax error in your child theme’s style.css 
   file.
 *  Thread Starter [ryanmacmorris](https://wordpress.org/support/users/ryanmacmorris/)
 * (@ryanmacmorris)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/child-theme-problems-10/#post-6178958)
 * That did the trick, thanks a bunch for the help.

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

The topic ‘Child theme problems’ is closed to new replies.

 * ![](https://i0.wp.com/themes.svn.wordpress.org/harmonic/1.1.2/screenshot.png)
 * Harmonic
 * [Support Threads](https://wordpress.org/support/theme/harmonic/)
 * [Active Topics](https://wordpress.org/support/theme/harmonic/active/)
 * [Unresolved Topics](https://wordpress.org/support/theme/harmonic/unresolved/)
 * [Reviews](https://wordpress.org/support/theme/harmonic/reviews/)

## Tags

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

 * 5 replies
 * 2 participants
 * Last reply from: [ryanmacmorris](https://wordpress.org/support/users/ryanmacmorris/)
 * Last activity: [10 years, 11 months ago](https://wordpress.org/support/topic/child-theme-problems-10/#post-6178958)
 * Status: resolved