Site logo

Archived topic

GP subtheme Prime hamburger button location

13 replies · Started by jr on January 12, 2021

Viewing posts 1–14 of 14

Hello,

How can the hamburger button be displayed before the primary menu, currently it gets placed after the cart button.

thank you,

Hello,

In desktop view, it appears after the cart button.

How can it be set before the primary menu in desktop view?

thank you

We will need to see the page in question to be able to assist.

Can you provide that in the private info field?

Thanks!

We will need to see the page in question to be able to assist.

Can you provide that in the private info field?

Thanks!

Hi Leo,
more details sent.

I went to our default Prime install and activated the off canvas menu for both desktop and mobile and this is what I see:
https://www.screencast.com/t/XYt5VtBZSl

I don't really want to provide my IP in a public forum here. Can you start a staging site so I can view the issue quickly?

Or we can revisit the issue once the site is live - should be an easy fix once we have something to look at.

Ahh sorry I misunderstood your question.

The easiest way is actually to add the toggle as a custom link menu item in the menu.

Use # as the URL field.

This would be the navigation label:
<span class="gp-icon pro-menu-bars"> <svg viewBox="0 0 512 512" aria-hidden="true" role="img" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="1em" height="1em"> <path d="M0 96c0-13.255 10.745-24 24-24h464c13.255 0 24 10.745 24 24s-10.745 24-24 24H24c-13.255 0-24-10.745-24-24zm0 160c0-13.255 10.745-24 24-24h464c13.255 0 24 10.745 24 24s-10.745 24-24 24H24c-13.255 0-24-10.745-24-24zm0 160c0-13.255 10.745-24 24-24h464c13.255 0 24 10.745 24 24s-10.745 24-24 24H24c-13.255 0-24-10.745-24-24z"></path> </svg> </span>

Then add slideout-toggle as the CSS class.

https://www.screencast.com/t/dUiUFg4p9T

This adds the hamburger before the Tshirts category, but the "default" hamburger still appears after the shopping basket... how can the default hamburger be removed in the desktop now that its been added to the menu per your code?

Thank you for all your help.

perfect. thank you.

No problem :)

This archived topic is closed to new replies.