Re: Move logo icon on header only for desktop and not mobile

Solved

Move logo icon on header only for desktop and not mobile

sirensiren
Excursionist
41 0 8

Hi all!

 

I want to move the logo icon on the header to the left, in the place I show on the picture.

 

I found a code to do this, and I managed to do it but the position of the logo also changes on mobile, which I don't want. I want the position of the logo on mobile to appear exactly where it is now, which is in the middle.

Could someone please help me?

 

I can provide store URL and password through PM upon request.

 

Thank you for your time!

 

logo-place.png

Accepted Solution (1)

Made4uo-Ribe
Shopify Partner
9845 2340 2934

This is an accepted solution.

Hi @sirensiren 

Try this one. 

  • From your Shopify admin dashboard, click on "Online Store" and then "Themes".
  • Find the theme that you want to edit and click on "Actions" and then "Edit code".
  • 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 (min-width: 990px){
header.header.header--middle-left.page-width.header--has-menu {
    max-width: 100%;   
}
}

 

  • And Save. 
  • Result:
  • Made4uoRibe_0-1696945912361.png
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 2 (2)

Made4uo-Ribe
Shopify Partner
9845 2340 2934

This is an accepted solution.

Hi @sirensiren 

Try this one. 

  • From your Shopify admin dashboard, click on "Online Store" and then "Themes".
  • Find the theme that you want to edit and click on "Actions" and then "Edit code".
  • 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 (min-width: 990px){
header.header.header--middle-left.page-width.header--has-menu {
    max-width: 100%;   
}
}

 

  • And Save. 
  • Result:
  • Made4uoRibe_0-1696945912361.png
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.
sirensiren
Excursionist
41 0 8

Thank you, it worked! You are great and you saved me so much time and I deeply appreciate it! 🙂 ❤️