How can I center the logo on my mobile layout without affecting the desktop site.

Solved

How can I center the logo on my mobile layout without affecting the desktop site.

jl01
Tourist
4 0 1

I am using the theme dawn, I have selected the align on center option for mobile in customization but it only centers on desktop mode. I have uploaded the photo of how it looks. I've already tried similar problems solutions but none of them worked out, I hope someone can help me to fix this. Thanks!Captura de ecrã 2025-01-24 202602.png

Accepted Solution (1)
Made4uo-Ribe
Shopify Partner
10202 2422 3068

This is an accepted solution.

Thanks, check this one.

  1. From your Shopify admin dashboard, click on "Online Store" and then "Themes".
  2. Find the theme that you want to edit and click on "Actions" and then "Edit code".
  3. In the "Assets" folder, click on "base.css, style.css or theme.css" file, depending on which file your theme uses to store its CSS styles. At the bottom of the file, add the following CSS code:

 

@media only screen and (max-width: 749px){
a.header__heading-link.link.link--text.focus-inset {
    padding-right: 0;
}

.header__icons.header__icons--localization.header-localization {
    padding-right: 0;
}

details-modal.header__search {
    margin-right: -1.2rem;
}
}

 

  • And Save.
  • Result:
  • Made4uoRibe_0-1738679523671.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.

View solution in original post

Replies 6 (6)

Made4uo-Ribe
Shopify Partner
10202 2422 3068

Hi @jl01 

Please, share your store URL. 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.
jl01
Tourist
4 0 1
Made4uo-Ribe
Shopify Partner
10202 2422 3068

Thanks for the info, but its password protected. 

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.
jl01
Tourist
4 0 1

Hi, I've taken down the password protection, can you help me now?

Thanks!

Made4uo-Ribe
Shopify Partner
10202 2422 3068

This is an accepted solution.

Thanks, check this one.

  1. From your Shopify admin dashboard, click on "Online Store" and then "Themes".
  2. Find the theme that you want to edit and click on "Actions" and then "Edit code".
  3. In the "Assets" folder, click on "base.css, style.css or theme.css" file, depending on which file your theme uses to store its CSS styles. At the bottom of the file, add the following CSS code:

 

@media only screen and (max-width: 749px){
a.header__heading-link.link.link--text.focus-inset {
    padding-right: 0;
}

.header__icons.header__icons--localization.header-localization {
    padding-right: 0;
}

details-modal.header__search {
    margin-right: -1.2rem;
}
}

 

  • And Save.
  • Result:
  • Made4uoRibe_0-1738679523671.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.

LizHoang
Shopify Partner
1251 159 195

Hi
Can you share store URL?

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

Check our Joy Rewards & Loyalty Program