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

I need help centering logo in the header

I need help centering logo in the header

JonathanAaen
Tourist
5 0 1

Hey! I have a problem with the logo not being vertically centered in the header on mobile. Can someone help me?

 

The "NordicHaven" is not centered on mobile (nordichaven.no):

Hey! I have a problem with the logo not being vertically centered in the header on mobile. Can someone help me?

 

The "NordicHaven" is not centered (nordichaven.no):

JonathanAaen_0-1725266131870.png

 

Replies 3 (3)

niraj_patel
Shopify Partner
2391 516 516

Hello @JonathanAaen 

You can add code by following these steps

1. Go to Online Store -> Theme -> Edit code.
2. Open your theme.liquid file

3. Paste the below code before </body> on theme.liquid
<style>
@media screen and (max-width: 767px) {
    .site-header__logo-link {
        top: 10px !important;
    }
}
</style>

niraj_patel_0-1725266819016.png

Was my reply helpful? Click Like to let me know!
Was your question answered? Mark it as an Accepted Solution.

Shopify Partner || Helping eCommerce Stores
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution.
- For further discussion contact: Email ID- info@techlyser.com
JonathanAaen
Tourist
5 0 1

Dear Niraj Patel

 

It worked! I really appreciate you taking the time to save my store!

PK2023
Explorer
57 1 11

Hi,

 

I would say the fastest way is to theme > customize >open the header and at the botton for the CSS text box add:

@media all and (max-width:767px)
.header-layout--left-center #LogoContainer {

top: 20%; (or whatever percentage you are satisfied with the location)

}