Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trial![](https://ecs-static.teamtreehouse.com/assets/views/marketing/shared/community-banner-white-47072046c51352fe6a69f5e691ff5700b28bb11d45197d7bdf066d9ea3f72d0c.webp)
![Hassan Al-khalifah](https://secure.gravatar.com/avatar/ed0388aa426553a6a8a05eb586223e3a?s=96&d=https%3A%2F%2Fecs-static.teamtreehouse.com%2Fassets%2Fcontent%2Fdefault_avatar-445fbbabfc8dc9188fb5967fe43322ee0c3e0dd1e10f378bf8343784af5a13eb.webp&r=pg)
Hassan Al-khalifah
7,130 PointsMy WordPress child theme style.css styles not updating on page.
I have created a child theme to override my parent theme. From what I see, everything seems to be laid out correctly, but when I enter any custom CSS to my child's style.css file, none of the code renders on page. Please see functions.php and style.css code for my child theme below. Any suggestions would be great. Thanks in advance.
FUNCTIONS.PHP BELOW:
<?php function my_theme_enqueue_styles() {
$parent_style = 'parent-style'; // This is 'twentyfifteen-style' for the Twenty Fifteen theme.
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' ); ?>
STYLE.CSS BELOW:
/* Theme Name: Primer Child Theme URI: http://example.com/primer-child/ Description: Primer Child Theme Author: Internet Heads Author URI: http://www.internetheads.com/ Template: primer Version: 1.0.1 License: GNU General Public License v2 or later License URI: http://www.gnu.org/licenses/gpl-2.0.html Tags: custom-background, custom-colors, custom-header, custom-menu, editor-style, featured-: ;images, flexible-header, left-sidebar, one-column, right-sidebar, rtl-language-support, sticky-post, threaded-comments, three-columns, translation-ready, two-columns Text Domain: primer-child */
@import url(../primer/style.css);
/Internet Heads Custom Styles/
brands {
float: none;
}