Site logo

Archived topic

GB Button into GP menu

3 replies · Started by Joao on January 8, 2023

Viewing posts 1–4 of 4

I think I've seen some kind of related topic before but I'm unable to find it.
Anyways:
I would like to be able to add a GB button to the menu. I know there's a button option in GP and that GB allows me to design beautiful buttons (the sort of including an arrow button including transform effects). What I'm wondering how I can do it/looking for is: Can I replace GP menu button with a GB designed button? Using elements? Hook? Can you guide me here?
Thank you.

Hi there,

you can use a Block Element - Hook:

https://docs.generatepress.com/article/block-element-hook/

1. In Appearance > GeneratePress -> Activate the Elements Module
2. In Appearance > Elements -> Add New --> Block.
3. In the sidebar settings set the Hook to: menu_bar_items
4. In the Display Rules set the Location to where you want it displayed eg. Entire Site
5. Then add your button block to the editor and style it how you want etc.

NOTE: This will also appear in the mobile navigation header.

Thank you for your support; Comprehensive as usual!

Glad to hear that !

This archived topic is closed to new replies.