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

WordPress

My 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;

}