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

Brandon Brigham
Brandon Brigham
3,716 Points

WordPress menu isn't working

Hello,

The site I'm working on: http://walkerweir.co.nz/ has a menu that was custom built before taking over the project. They (for some reason) used a plugin to create dropdowns. The plugin is: Dropdown Menu Widget

Anyways, the menu dropdown doesn't work and I've disabled the plugin but still the dropdown functionality doesn't work.

Any ideas?

1 Answer

If you disabled the plugin for the menu then the menu will not work. In the backend of WP under menus, does the dropdown menu show up under manage locations?

Brandon Brigham
Brandon Brigham
3,716 Points

So I tried this and the menu shows up in the backend but the actual menu on the front end does not work. And actually when I disable the plugin I lose all of the page content for all pages except the header shows up but the menu doesn't work at all.

So it seems that the content is dependent on the menu plugin for some reason....

is this a custom theme? you should check the functions.php, setup.php or base.php in your file structure. There you might be able to find a function that is taking over the primary-nav. can you create a new nav and then add it to the site?

Brandon Brigham
Brandon Brigham
3,716 Points

Yes this is a custom theme that I didn't build - The original developers are not willing to help for whatever reason - I cannot create a new nav using the natural WP function

what about in the backend and use register_nav_menus()?

Brandon Brigham
Brandon Brigham
3,716 Points

Not sure what you mean Jacob - Are you suggesting I change php code in backend?

well its a Wordpress function. first in the backend of WP go to menus then create a new menu, then you will need to find in the your php files where the register_nav_menus function is , then register it by using that function, pass the arguments in the function and then you should be able to use that new menu.