Archived topic
Add a Button in the main navigation menu
5 replies · Started by Max on December 17, 2021
Hello,
When are we going to be able to Add a Button as a feature in the main navigation menu?
(menu example: HOME EVENTS CONTACT [REGISTER]) the register is the color button.
Hi Max,
1. You can create a block element, add the button in content area of the block element, set element type to hook, set hook name asmenu_bar_items, set location to entire site:
https://docs.generatepress.com/article/block-element-overview/
In this way, the register button will show on mobile without clicking on the menu toggle icon.
2. If you want the button to show after clicking on the menu toggle icon as the other menu items on mobile, then try this method instead:
https://docs.generatepress.com/article/adding-buttons-navigation/
Well, it is a little bit difficult to do using CSS. Adding a button to the main menu is very popular right now. I hope someday it could be a feature just like it is in RISHI plugin.
I think you can give the 1st option a try :)
It's fairly easy to do.
I got it done. It was easy. Thank you.
Great!
You are welcome :)