Tagged: mega menu, menu, navigation, responsive
-
AuthorPosts
-
March 5, 2015 at 2:35 pm #406410
Hi Everybody,
I have a question, concerning the Mega Menu Plugin.I would like to add a Custom Menu Item to my Menu, wich gets updated everytime someone adds a Post or deletes it. I managed to accomplish this so far by using the ‘wp_nav_menu_items’. Unfortunately this works only when the Menu is not in the Mobile view. As soon as the Menu switches to the Mobile View, my custom Menu Item disappers.
Now to my question. Is there a Hook provided by Enfold to accomplish the same but preserve the Behaviour when in Mobilie View, and if not where is the right place in the custom enfold Walker Class to add a Menu Item at the beginning of the Menu.Any Hints would help ;-)
Thnx in Advance
- This topic was modified 9 years, 9 months ago by atef123. Reason: changed Header
March 5, 2015 at 9:34 pm #406688Hey atef123!
You should be able to use the “ava_inside_main_menu” hook to add stuff to the end of the menu.
I’m not really sure I understand what your trying to do though. Can you send us a link to your page and take a screenshot highlighting your intentions?
If your trying to add extra menu items then you could just edit the menu your using. Whatever you add to the menu should be displayed in the mobile menu as well.
Best regards,
ElliottMarch 6, 2015 at 7:45 pm #407246Hi Elliot,
Unfortunatelly i cant provide you with a Link to the Problem, since i´m working in a local development Enviroment right now.
However i managed as i said to add a dynamically generated Menu Item to the End of the Menu, which works without any Problem.
My Intension is to add it at the beginning of the Menu, sure i could use css to place it at the beginning but that would break the Resonsive Behavior in Mobile View.
Any suggestion?
And thanks for the as always great support :-)March 6, 2015 at 8:57 pm #407265ok never Mind figured it out myself.
Thnx -
AuthorPosts
- The topic ‘Add Menu Items?’ is closed to new replies.