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

Aaron Bitner
Aaron Bitner
369 Points

Style.css not changing even after creating new function.php

I've followed the steps and tried to change the header color at least fifteen times and I'm still not having any luck. I've also created a new functions.php folder in my child theme and pasted the below code into that, then uploaded that via filezilla to my child theme. The header is still the same color. I'm not sure if I'm missing a step, but I don't think so. I'm using OSX, hosting on Blue Host, using Chrome.

3 Answers

Try add this in your header file (header.php) and i recommend add following code directly before </head> close tag

<link href="<?php bloginfo('template_url') ?>/folder_name/style_name.css" rel="stylesheet">

replace (folder_name) with your folder name which you uploaded the style sheet and (style_name) with your style sheet name

Aaron Bitner
Aaron Bitner
369 Points

Anywhere in the header.php between <head> and </head>?

Aaron Bitner
Aaron Bitner
369 Points

Aha i got it. Thank you!!

Yes replace </head> with following

<link href="<?php bloginfo('template_url') ?>/folder_name/style_name.css" rel="stylesheet">
</head>

Don't forget to replace (folder_name) with your folder name which you uploaded the style sheet and (style_name) with your style sheet name

Hello, If you dont mind me asking, where is this header.php file found. thank you.