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 How to Make Child Themes

Unable to make the css to work

I have made the child theme as instructed and copied the files from the download section. But when I activate the child theme from the dashboard and visit the site. The styling of the site is not to the mark. I guess the css is not loaded. Is there anyone who have faced the same problem. Could you suggest me some solutions.

3 Answers

Hi Shantanu,

could you please post the content of your head element within your header.php as well as the code within your functions.php? Thanks :)

Anthony Babich
Anthony Babich
5,505 Points

That's hard to say.. Are you running PHP locally? Do you have a web link you can share?

In my experiences with child-themes (and obviously), something is broken. Either you're forgetting to include something, or there is something that needs to be included that isn't so apparent.

Floyd Orr
Floyd Orr
11,723 Points

Make sure your file is saved as a css file and not a txt one. Sometimes even if you put .css notepad will save it as a .txt and show it .css. To check hover your mouse over the file and it should say cascading style sheet and not text document.