Header Drawer menu

Header Drawer menu

sosober
Excursionist
25 0 11

I've dome some customization on my header drawer but I am blocked for two reasons.

I'd like the navigation menu to be centered as I've already set but I did not manage to move also the arrow to the center.

Finally, if you take a look I would like the legal menu to be higher and also the "login" should be in the middle between the legal menu and social media links 

https://0byf0v-34.myshopify.com/
mohwhi


Hope you can help me.

Thank you

Replies 4 (4)

jaimemaman
Shopify Partner
4 1 0

Hey SoSober

you need to update the absolute positioning of the svg arrow  
right now it has a right position of 3rem, it should be something like 14rem

this is your css
.menu-drawer__menu-item>.svg-wrapper


add a new rule just for categories

#HeaderDrawer-categorie.menu-drawer__menu-item>.svg-wrapper

and give it a right of 14rem
and then for the legal menu, add some margin bottom
find the css
.menu-drawer__footer-custom 

and give it some margin bottom e.g. 5rem

for example!

tim
Shopify Partner
4702 573 1700

This is what I'd add to move your arrows to the center:

.menu-drawer summary.menu-drawer__menu-item {
  padding: 1rem 2.4rem;
}
.menu-drawer .menu-drawer__menu-item>.svg-wrapper {
  position: static;
  transform: none;
  margin-left: 1rem;
}
.menu-drawer .menu-drawer__close-button {
  display: inline-flex;
  justify-content: center;
}

Screenshot 2025-05-27 at 1.16.16 AM.pngScreenshot 2025-05-27 at 1.16.22 AM.png

 

And this will fix your login link:

.menu-drawer__footer-account {
  margin: 5rem auto;
}

We set bigger top and bottom margins on this element and have it centred because of margin collapsing.

Screenshot 2025-05-27 at 1.20.21 AM.png

If my post is helpful, hit the thumb up button -- it will help others with similar problem to find a solution.
I can be reached via e-mail tairli@yahoo.com
sosober
Excursionist
25 0 11

Thank you! 

If you go check now the header icons are on the left side and the cart bubble is on the right.

how can I bring it as the Shopify default settings?

tim
Shopify Partner
4702 573 1700

This:

.svg-wrapper {
  display: inline-flex;
  align-items: center;
  margin-right: 11rem;
  padding: 0;
}

 

 

Have you tried my code instead?

If my post is helpful, hit the thumb up button -- it will help others with similar problem to find a solution.
I can be reached via e-mail tairli@yahoo.com