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

PHP

hamburger menu not working

Hi guys,

I'm having issues with the hamburger menu for a site I've built.

It works just fine when I am on the "Home" page (and if I select "Home" from the menu after clicking the hamburger icon), but once I select another page from the menu and navigate away from the "Home" page it stops working.

It's got me absolutely beat. All the coding for it is in my header.php file, which I've included in all my other php files so I just can't figure out where it is going wrong.

The source files are in my Github repository:-

https://github.com/Donatron/Discover-Music

Any help would be greatly appreciated.

Cheers Don :-)

1 Answer

Figured it out. I wasn't calling my .js file in the other php files.

D'uh..... :-)