We're moving the community! Starting July 7, the current community will be read-only for approx. 2 weeks. You can browse content, but posting will be temporarily unavailable. Learn more

Header Spacing

Solved

Header Spacing

resonancemusic
Excursionist
20 1 5

Hi everyone,

I'm new to Shopify and still finding my way around. I've been trying to tweak the layout of my store's header but have found myself going down a bit of a code rabbit hole!

What I’m trying to do:

  • Move my logo slightly more to the left.
  • Adjust the spacing between the shopping bag and hamburger menu icons.
  • Move the shopping bag and hamburger menu to the very right-hand side of the header. (Also I moved the hamburger menu to the right of the logo but it is still on the left for desktop view)

If anyone could guide me on how to make these changes or point me in the right direction, I’d really appreciate it. I’m eager to learn but feel a bit stuck right now.

Thank you in advance for your help! 😊

 

www.resonancemusiccollective.com

resonancemusic_2-1736053880616.png

 

PS - I think it is one of these pieces of code that I have inputted that is responsible for the misalignment between the desktop and mobile view

 

1. base.css

resonancemusic_0-1736053753142.png

 

2. theme.liquid

resonancemusic_1-1736053845242.png

 

 

Accepted Solution (1)
resonancemusic
Excursionist
20 1 5

This is an accepted solution.

This works! but the logo and hamburger menu are slightly too far left and right of the picture (treat the picture as the margin), I tried changing the width in the code but it doesn't let me manually change it for some reason, also the icons aren't evenly spaced on the desktop view for some reason. 

View solution in original post

Replies 7 (7)

suyash1
Shopify Partner
11112 1367 1751

@resonancemusic please add this css to the very end of your base.css file and check,
Shopify Admin -> Online Store ->Theme -> Edit code -> base.css

 

@media screen and (max-width: 989px) {
.header {padding: 8px 0 !important;}
}

 

suyash1_0-1736060600747.png

 

To build shopify pages use PAGEFLY | Contact me - suyash.patankar@gmail.com
resonancemusic
Excursionist
20 1 5

No luck with this unfortunately

suyash1
Shopify Partner
11112 1367 1751

@resonancemusic  I did not see the code added, can you please add my given code so I can check the issue?

To build shopify pages use PAGEFLY | Contact me - suyash.patankar@gmail.com
resonancemusic
Excursionist
20 1 5

I added the code but it didn't work, I have readded it with the custom code from the other response, I am now trying to change the logo and hamburger menu to align with the picture 

DaisyVo
Shopify Partner
4469 501 598

Hi @resonancemusic 

To complete your requests, please follow these steps:
  1. Go to Shopify Admin > Online Store > Theme > Customize > Theme Settings > Custom CSS https://prnt.sc/i8ljAMlHJUKl
  2. Paste the code provided into the Custom CSS section.

 

 

@media screen and (max-width: 768px){
header.header.header--middle-left.header--mobile-left {
    padding-inline: 0 !important;
}
}
@media screen and (min-width: 990px) {
    .header--top-left.drawer-menu, .header--middle-left.drawer-menu {
        grid-template-areas: 'heading icons navigation' !important;
    }
}

 

 

Here is the result: image_360.pngimage_720.png

 

I hope this helps

 

Best,

 

Daisy

 

Please let us know if our reply is helpful by giving it a Like or marking it as a Solution!

Avada SEO & Image Optimizer - The #1 SEO solution
resonancemusic
Excursionist
20 1 5

This is an accepted solution.

This works! but the logo and hamburger menu are slightly too far left and right of the picture (treat the picture as the margin), I tried changing the width in the code but it doesn't let me manually change it for some reason, also the icons aren't evenly spaced on the desktop view for some reason. 

resonancemusic
Excursionist
20 1 5