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 WordPress Widgets and Custom Menus How to Create Widgetized Areas in WordPress

Meg Cusack
Meg Cusack
11,448 Points

Alignment of text in header widget Zac added.

My text in the header widget is left aligned instead of center aligned like Zac's. I don't see what I did differently to cause this?

Paul Roberts
Paul Roberts
7,928 Points

Hi Meg, My text in the header widget, is also left aligned - unlike Zac's. I don't suppose you found out why did you? The CSS in the project files do state to "align: center", but I'm unsure as to why it doesn't work for me...

3 Answers

Can you show the css code you are using to align the text?

Meg Cusack
Meg Cusack
11,448 Points

Did he show a place to edit the CSS for that header widget? I don't see where...

They just dragged/copied the style.css file provided in the project download section. You can find the css code there. I think that's why they actually didn't post the code.

Meg Cusack
Meg Cusack
11,448 Points

Thanks, Victoria. That is helpful

Meg, did you manage to fix it? I had the same problem and had to redo everything, starting from this video https://teamtreehouse.com/library/how-to-make-a-website-with-wordpress/customizing-wordpress-themes/customizing-wordpress-theme-files. I made sure my css code .navbar {background-color: #220e10;} works in this early stage.

Meg Cusack
Meg Cusack
11,448 Points

I didn't do anything to fix it but for some reason, when I just came back to refresh on these videos (several months later), the text center-aligned fine this time?! So, I thought maybe they had updated the css styles file or something between then and now.

I am glad that you don't have this problem anymore. :)