Title: Child theme
Last modified: August 30, 2016

---

# Child theme

 *  [wpuser155](https://wordpress.org/support/users/wpuser155/)
 * (@wpuser155)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/child-theme-178/)
 * Hi,
 * Has anyone encountered any issues with getting a child theme to work
    using the
   standard, current, codex method listed here: [https://codex.wordpress.org/Child_Themes](https://codex.wordpress.org/Child_Themes).
 * My child theme css file does not seem to loading correctly.
 * Thanks..

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

 *  [KafleG](https://wordpress.org/support/users/kafleg/)
 * (@kafleg)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/child-theme-178/#post-6758066)
 * Try this method. If not work feel free to ask.
    [Child theme developement](http://kafleg.com.np/2015/11/08/child-theme-development/)
   Thanks
 *  Thread Starter [wpuser155](https://wordpress.org/support/users/wpuser155/)
 * (@wpuser155)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/child-theme-178/#post-6758068)
 * Thanks for the reply kafleg. I have tried both code options listed on the codex
   page (and on your psge as well) in my child themes function.php but my child 
   style.css is still not getting loaded last. I have this working for my twentyeleven
   theme but not sure why the problem here.
 *  [KafleG](https://wordpress.org/support/users/kafleg/)
 * (@kafleg)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/child-theme-178/#post-6758074)
 * Child theme CSS is properly enqueue in functions.php?
 *  Thread Starter [wpuser155](https://wordpress.org/support/users/wpuser155/)
 * (@wpuser155)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/child-theme-178/#post-6758087)
 * This is what I have:
 * <?php
    function 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 ) ); } add_action( ‘wp_enqueue_scripts’, ‘theme_enqueue_styles’);?
   >
 *  Moderator [Kathryn Presner](https://wordpress.org/support/users/zoonini/)
 * (@zoonini)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/child-theme-178/#post-6758108)
 * > Thanks for the reply kafleg. I have tried both code options listed on the codex
   > page (and on your psge as well) in my child themes function.php but my child
   > style.css is still not getting loaded last. I have this working for my twentyeleven
   > theme but not sure why the problem here.
 * Could you provide a link to your site running Penscratch so I can take a look?
 * Could you confirm that your child theme’s functions filename is actually functions.
   php (with an “s”) and not function.php?
 * Also, I’d suggest you remove the closing PHP tag on your function above, it’s
   not recommended to use one in functions.php.

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

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

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

## Tags

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

 * 5 replies
 * 3 participants
 * Last reply from: [Kathryn Presner](https://wordpress.org/support/users/zoonini/)
 * Last activity: [10 years, 9 months ago](https://wordpress.org/support/topic/child-theme-178/#post-6758108)
 * Status: not resolved