How to center logo on mobile display

How to center logo on mobile display

tmitch
Excursionist
23 0 7

Hello. I need help centering the logo because on mobile its a little offset to the left.

Screenshot 2024-08-28 at 12.38.55 PM.png

Replies 3 (3)
tmitch
Excursionist
23 0 7

Yes that would be great if you can !

Made4uo-Ribe
Shopify Partner
10036 2387 3013

Hi @tmitch 

The logo is already centered, do you want to move a bit to the left? 

If it is check this one. 

From you Admin page, go to Online Store > Themes

Select the theme you want to edit

Under the Asset folder, open the main.css(base.css, style.css or theme.css)

Then place the code below at the very bottom of the file.

 

@media only screen and (max-width: 749px){
.header {
    display: grid;
    grid-template-columns: 1fr 2fr 2fr;
    align-items: center;
}
}

 

And Save. 

Result:

Made4uoRibe_0-1724874848044.png

 

 

 

Please don't forget to Like and Mark Solution to the post that helped you. Thanks!

If this fixed your issue, Likes and Accept as Solution are highly appreciated. Coffee tips fuel my dedication.
Get experienced Shopify developers at affordable rates—visit Made4Uo.com for a quick quote!
Need THEME UPDATES but have custom codes? No worries, for an affordable price.

ES1
Shopify Partner
242 23 25

Hi Tmitch,

 

You have the search icon on the right in between the logo and the cart which is making the logo look slightly on the left. Also, your theme header is not using the full width of the screen. You can remove/disable search icon in the header and instead add it as a menu item in the Main navigation and as a linked list item in the footer.

 

Please DM, if you need help with the same.

 

Thanks

If this fixed your issue, Please Like and Accept as a Solution.
Looking for assistance? Hire an experienced Shopify Partner! Visit EcommerceStorez.us today for a quick quote.
Seeking an elegant theme designed to boost conversions? Explore our High-Converting Shopify Themes today!