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 trialRonnie Barua
17,665 PointsMy contact pages doesn't load
When I click on Contact button nothing happens. Any solution anyone? Thanks
Jane Lawson
1,601 PointsPut "../contact.php" because header.php is in a folder so you will need to jump out of that first
1 Answer
Greg Kaleka
39,021 PointsHi Ronnie,
I actually had this issue when I first tried it. It's hard to know what your issue is, since you didn't include your header.php code (hint: check out the "Tips for asking questions" in the sidebar over there -->), but here's what I'd check:
You have to make sure you edit the href attribute in header.php. It should be around line 18, where the navigation list item of class "contact" has the following code:
<a href="#">Contact</a>
You need to change the href="#"
to href="contact.php"
.
Let us know if that helped. If not, please share your header.php code!
Tyler Schmitt
10,416 PointsTyler Schmitt
10,416 PointsDid you make sure to change the href to "contact.php"? If you left it as #, that would make sense as to why your contact page wouldn't load.
If not, please post some code so we can take a look at what you have.