Reply To: Adding a button to menu. Workaround?

Home Forums Support Adding a button to menu. Workaround? Reply To: Adding a button to menu. Workaround?

Home Forums Support Adding a button to menu. Workaround? Reply To: Adding a button to menu. Workaround?

#228678
Tom
Lead Developer
Lead Developer

Hi Andrew,

I think a better method would be to give a custom menu item a unique class: https://docs.generatepress.com/article/using-the-wordpress-menu-builder/#custom-classes

Then style it with CSS:

.main-navigation .my-custom-class a {
    border: 1px solid red;
    /* other CSS for your button */
}