Have your say in Community Polls: What was/is your greatest motivation to start your own business?

Re: Mobile Website Logo Not Centered

Mobile Website Logo Not Centered

Pods10101
Excursionist
33 0 10

I made my website logo centered it shows correctly on the desktop version of the site, but on the mobile it is centered but it is slightly to the left. I think this has to do with the padding. Can anybody help me? Thanks!

 

My Website: www.gadget-pods.store

Replies 8 (8)

Moeed
Shopify Partner
6322 1715 2067

Hey @Pods10101 

 

Follow these Steps:

1) Go to Online Store
2) Edit Code
3) Find theme.liquid file

4) Add the following code in the bottom of the file above </body> tag

<style>
@media screen and (max-width: 767px) {
.header__heading-logo {
    right: 10px !important;
    position: relative;
}
}
</style>

RESULT:

Moeed_0-1728363149421.png

 

If I managed to help you then, don't forget to Like it and Mark it as Solution!

 

Best Regards,
Moeed

- Need a Shopify Specialist? Chat on WhatsApp

- Get a quick Shopify quote – Click here!

- Custom Design | Advanced Coding | Store Modifications


Pods10101
Excursionist
33 0 10

hey there that still doesn't center it

as you can see it is slightly left

Moeed
Shopify Partner
6322 1715 2067

I see, you wanna move the logo to the right then. Try this code.

<style>
@media screen and (max-width: 767px) {
.header__heading-logo {
    left: 5px !important;
    position: relative;
}
}
</style>

RESULT:

Moeed_0-1728363629120.png

 

If I managed to help you then, don't forget to Like it and Mark it as Solution!

 

Best Regards,
Moeed

- Need a Shopify Specialist? Chat on WhatsApp

- Get a quick Shopify quote – Click here!

- Custom Design | Advanced Coding | Store Modifications


Pods10101
Excursionist
33 0 10

okay I did that now the icons for the search and checkout are too close to the logo I want them away form the logo a bit

 

Moeed
Shopify Partner
6322 1715 2067

You can adjust the value of left and make it less than 5px to whatever suits you the best! 🙂

 

If I managed to help you then, don't forget to Like it and Mark it as Solution!

 

Best Regards,
Moeed

- Need a Shopify Specialist? Chat on WhatsApp

- Get a quick Shopify quote – Click here!

- Custom Design | Advanced Coding | Store Modifications


Pods10101
Excursionist
33 0 10

what????? I said the logo for the search icon

 

Moeed
Shopify Partner
6322 1715 2067

Ah apologies for the confusion, remove the previous code which you have added so far and add this final code.

<style>
@media screen and (max-width: 767px) {
.header__heading-logo {
    left: 5px !important;
    position: relative;
}
.header__icons {
    left: 15px !important;
    position: relative !important;
}
}
</style>

RESULT:

Moeed_0-1728364506236.png

 

If I managed to help you then, don't forget to Like it and Mark it as Solution!

 

Best Regards,
Moeed

- Need a Shopify Specialist? Chat on WhatsApp

- Get a quick Shopify quote – Click here!

- Custom Design | Advanced Coding | Store Modifications


SM-WEB
Shopify Partner
4 0 0

Add this css in your bottom of the base.css file-

@media screen and (max-width: 767px) {

.header__heading-logo {left: -15px !important;}

}

SM Web Expert