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 trialAaron Bitner
369 PointsStyle.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
Haytham Badran
216 PointsTry 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
Haytham Badran
216 PointsYes 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
Aaron Bitner
369 PointsThank you!!
Isaac Ayele
115 PointsHello, If you dont mind me asking, where is this header.php file found. thank you.
Aaron Bitner
369 PointsAaron Bitner
369 PointsAnywhere in the header.php between <head> and </head>?
Aaron Bitner
369 PointsAaron Bitner
369 PointsAha i got it. Thank you!!