Adding Top Menu in Mobile Only
-
Hello … I’m hoping someone can assist me with a task related to a challenging project! In this site, built using a twenty-twelve child theme, the primary navigation is located in a sticky footer. They now want the mobile menu to display at the top rather than in the sticky footer (but only in the mobile version). I’ve followed the solution at the link below:
Zeaks Blog: Add second menu to Twenty Twelve Theme
However, the menu I’ve created doesn’t show up in the mobile. According to the tutorial, I should be able to go to appearance > menus and assign my menu (primary-mobile) to the new location. But it doesn’t appear there … only the locations primary and footer appear. Could that be why the menu isn’t showing?
(as an aside, the client only wanted a header image in the home page, in case you are wondering ….)
Here is some code in pastebin (all within child theme) based upon the solution linked above:
code at bottom of navigation.js file
Thanks for any guidance anyone can provide.
- The topic ‘Adding Top Menu in Mobile Only’ is closed to new replies.