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

Footer <p> not using the CSS on the page with sidebar/index page, but works on all the other pages - Bootstrap to WP

I have a weird thing going on. When I'm on any page but the page with sidebar, which is using the index.php file, my footer is displaying correctly but on the page with sidebar/index page it doesn't seemed to be displaying the css. The copyright etc is all the way over to the left. From what I can tell the ::after isn't showing up when I inspect the page with sidebar, like it shows on the other pages. So basically my default template isn't working correctly in the footer area.

Henrik Hansen
Henrik Hansen
23,176 Points

You should use the dev tools in your browser to see what css is used for that element, and what file is used. You are probably missing some class in the element, or the cuss might be overwritten somewhere. Dev tools will help you with this.

1 Answer

Greetings Cristi,

Henrik has the right idea here. Debugging this is going to be your best bet. Most likely a class or ID is being omitted from your index.php.

This also poses another issue as index.php is the last line in the template hierarchy. It sounds like you are missing some default pages.

http://wphierarchy.com/

Mark