REPOSITIONIG MENU ITMES AND LOGO IN HEADER. CENTRE ALIGNMENT AND MARGIN TO THE LEFT AND RIGHT

REPOSITIONIG MENU ITMES AND LOGO IN HEADER. CENTRE ALIGNMENT AND MARGIN TO THE LEFT AND RIGHT

slidein_india
Tourist
16 0 2

Hi,

 

I would like to centre my header menu which is currently slightly to the right. I want the logo to be in the centre. Have attached a screenshot for a rough idea. Also need to reduce the margin space on either side of the header. 

Need these corrections only for desktop view. it should not effect mobile view. 

 

In, the mobile view Need to correct the alignment as well. Need to centre the logo and reduce the banner and header size. including font and logo size. For reference i've attached mobile view of my website and a mobile view of how I would like the banner and header size.

 

My website is www.slidein.co.in

 

I'm using dawn theme.

Screenshot 2025-01-11 at 8.41.57 AM.png

 

WhatsApp Image 2025-01-11 at 12.43.10 AM.jpeg

IMG_1664.jpg

Replies 4 (4)

Bundler-Manuel
Trailblazer
524 25 57

Hi there @slidein_india  for centering the menu, I believe this could should work for you 

<style>

.header__inline-menu {
text-align: center;
}

</style> 
Give it a try and let me know whether it’s successful 

Emmanuel
Please let me know if it works by marking it as a solution!
Bundler - Product Bundles app, a great bundle app for Shopify, with glowing user testimonials and a free plan.

ShreyaRevize
Shopify Partner
30 1 6
 

Hi @slidein_india,

 

Thanks for sharing the details and screenshot! Centering the logo and menu, reducing margins, and adjusting the header will require tweaks to the Dawn theme’s CSS. We’ll need to review the existing styles and make desktop-specific changes without affecting mobile.

 

Let me know if you’d like us to handle this for you!

 

Best,
Shreya | Revize

With 7+ years of experience helping Shopify merchants succeed | www.untechnickle.com
Creator of Revize – Empowering customers to fix mistakes and buy more after purchase 
Let shoppers edit shipping addresses, change variants/quantities, add products, and more!
https://apps.shopify.com/revize | hello@untechnickle.com

EstherBui
New Member
32 4 5

Hi @slidein_india 

 

Here is the code to reduce space on both headers. 

You can follow this instruction:

1. Go to Shopify > Theme > Customize

2. Copy and paste this code on Theme settings > Custom CSS section

@media screen and (min-width: 1024xp){
header.header {
padding-inline: 0 !important;
max-width: unset !important;
}
}

EstherBui_0-1736597428737.png

 

 

About the logo being misaligned, both the logo and the menu are centered. However, you customized the code earlier to align the logo with the menu. You also added CSS to create a space between the menu and the logo. This makes it look misaligned because the text length on either side of the menu is different.

I recommend leaving it as it is, or moving the menu below the logo.

 

I hope it helps. 

 

Esther

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

slidein_india
Tourist
16 0 2

Hi,

 

The code isn't working for me. Thanks for the explanation regarding the alignment. I understand and have left it untouched as it's properly aligned in the desktop view now. My only concern now is in the mobile view on the main page the logo is aligned at the centre but when you navigate to any other page. collections or faq etc the logo's alignment shifts to the right. Can you help me solve that. And also, the code for removing the spaces to the left and right aren't working in mine.