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 How to Make a Website with WordPress Customizing WordPress Themes Customizing WordPress Theme Files

Inas Hyatt
Inas Hyatt
4,454 Points

Hi! The changes are not being made to my page, and I have no idea what to do?

/*
Theme Name: Twenty Thirteen Child Theme
Theme URI: http://mypage.com
Author: http://mypage.com
Author URI: https://mypage.com
Template: twentythirteen
Description: The 2013 theme for WordPress takes us back to the blog, featuring a full range of post formats, each displayed beautifully in their own unique way. Design details abound, starting with a vibrant color scheme and matching header images, beautiful typography and icons, and a flexible layout that looks great on any device, big or small.
Version: 1.5
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
*/

(on function.php)

<?php
function child_styles() {
    wp_enqueue_style( 'parent_style', get_template_directory_uri() . '/style.css');
}

add_action( 'wp_enqueue_scripts', 'child_styles' );
Nathan Newell
Nathan Newell
7,634 Points

If you view the source code is the link to the css file in the head tag? and when you click it do you see the comment that you have above?

Also, are you importing the css from the parent theme?

@import '../twentythirteen/style.css'

1 Answer

Hi Inas,

Usually the child theme is included automatically providing but if not you could try the second example from this section of the Codex as this also includes the child theme style sheet.

Sorry if this sounds obvious but another thing to check would be whether you have fully activated the newly created child theme from the Appearance > Themes section of the dashboard. It will display any issues with the theme in this section too.

Hope that helps :)

-Rich

Inas Hyatt
Inas Hyatt
4,454 Points

Hi Rich!

It wasn't activated, THANKS SO MUCH!

No problem! Don't forget to mark it as Best Answer if you're sorted :)

Thanks

-Rich