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 trialShaimoom Newaz
7,219 PointsDo we need to use `add_theme_support('menus')` if I already have `register_nav_menus()...`?
I am looking at the codex and it is saying to "menus: Use register_nav_menu() or register_nav_menus() instead."
1 Answer
Daniel Stopka
13,520 Pointsaccording to documentation of register_nav_menu() or register_nav_menus() this functions automatically register custom menu support for the theme, therefore you do not need to call add_theme_support( 'menus' )...
Shaimoom Newaz
7,219 PointsShaimoom Newaz
7,219 PointsPerfect. Thanks!