Site logo

Archived topic

Button on mobile menu

12 replies · Started by Escobar on January 18, 2021

Viewing posts 1–13 of 13

Would it be possible to put the user icon to log or register in the mobile version as a button?

website is https://www.mivestuariolaboral.com

Thanks in advance

Kind regards

Hi Escobar,

I would recommend to use Font Awesome plugin, after their recent update, we'll be able to use SVG icon from Fontawesome website, and it only loads the icon you use.

Try to follow the steps below:

1. Install Font Awesome plugin, activate it, and enable SVG option.
https://www.screencast.com/t/jIQGjaxQS

2. Go to fontawesome.com find the icon you'd like to use, copy the html link.
https://www.screencast.com/t/lB6gUBxBQo3

3. Go to Appearance > Menu, add the icon's html as Navigation Label into your off-canvas-menu, use the my account link as url.
https://www.screencast.com/t/z9icEXqSNc

Then the icon will show in the menu location you assigned to as a menu item.

Let me know if it works!

Sorry, I haven't explained to you that the menu is customized to look like this.

The icon would be in the main menu and in the mobile version it was not visible.

This is the topic https://generatepress.com/forums/topic/search-bar-4/

and the icon is actally inserted with a hook.

I dont know what i have to change now.

Thanks in advance

Oh I see, then you just need to duplicate that hook and choose generate_inside_slideout_menu or generate_afer_slideout_menu for the new hook :)

Once you added it, we can help you with the CSS to style it to button look :)

Added!

Best regards.

Hi there,

what layout do you want for the Mobile Menu ? Could you share a mockup image of how you would like it to look?

Hi David! Pleased to see you.

Sure.
Something similar to This:

mobile button

Best regards

Awesome, It works!

Thanks.

Is there a way to customize the button sharp? Rounded corners, ghost style...?

Best regards.

Looks like your using a GenerateBlocks Button - you have full color, padding, border radius controls within the buttons Settings.

Ok thanks.

This archived topic is closed to new replies.