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 WordPress Theme Development The WordPress Loop Adding the Loop to the index.php File

Why you put the normalize_css file after the foundation_css so that it overwrites it and cause the problems you found?

I think if you put the normalize_css first and before the foundation_css in the functions.php file evth. should work fine and you could use it

9 Answers

Yeah, if you lead off with Normalize and then Google Fonts, Foundation, and finally Main you should be good to go.

Ricardo Diaz
Ricardo Diaz
30,415 Points

Traditionally you want to start off with the reset in this case its Normalize. Then you want the fonts to load first before the stylesheet to avoid any flashing issues. Then foundation and followed by custom stylesheet. When you do the JS scripts you would want to follow the same train of thought.

@Ricardo Diaz

well, my question was less about the logic behind this but more about this video and why treehouse is 'teaching' this topic in this way and bringing the different style files in the wrong order.

Even when Zac get's in trouble with this he is not talking about this problem but only commenting the normalize file out. I hoped somebody from treehouse would see my comment and may be update the video for the better and more easy to learn for the treehouse students.

But since I posted this question/comment 2 month ago i learned that treehouse does not really care about the quality of their work and they leave their students on themselves

I would say switch them and see what happens. If it doesn't work it will break something and you can simply switch it back.

Zac Gordon
STAFF
Zac Gordon
Treehouse Guest Teacher

Hey folks! Thanks for the correction here. I didn't notice what you're talking about till later and unfortunately the designer who made the site left during the shooting of the course and didn't have a chance to work out some of the CSS bugs you're mentioning. Thanks for catching it!

yea i noticed that and i moved it

Ricardo Diaz
Ricardo Diaz
30,415 Points

Hi Oliver,

Sorry to hear that your question wasn't responded to fast enough. Two months is a long time and normally the team is pretty good at getting back to people.

What I can do is contact Zac Gordon directly and let him know about your post on here. I'm sure he will be able to shine some light on this problem. I hope this can restore some of your confidence in Treehouse and know that they do care about their quality of work and teaching you the correct way to do things.

I can't get the css sheet to work properly. Even if I comment out the normalize.css, and remove the s from the foundation.css, like was done in the video, my wordpress site still shows up the same. What could it be? I'm developing locally on Xampp

Zander Curtis
Zander Curtis
10,634 Points

Sorry, still a little lost on this one. I'm not really seeing a confirmed answer. Is the CSS problem a lot of people having related to the order of the styles? Is it that they aren't registered before enqueue? Have the videos been fixed on Treehouse?