New Shopify Certification now available: Liquid Storefronts for Theme Developers

Move logo icon on header only for desktop and not mobile

Solved
sirensiren
Excursionist
38 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
4235 979 1193

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
Please don't forget to 

Like

 and 

Mark Solution 

to the post that helped you. Thanks!
Sip, savor, and support – your

Coffee Tip

 helps us keep coding magic.❤️❤️❤️
Need a knowledgeable developer? Come and visit us at

Made4uo.com


View solution in original post

Replies 2 (2)
Made4uo-Ribe
Shopify Partner
4235 979 1193

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
Please don't forget to 

Like

 and 

Mark Solution 

to the post that helped you. Thanks!
Sip, savor, and support – your

Coffee Tip

 helps us keep coding magic.❤️❤️❤️
Need a knowledgeable developer? Come and visit us at

Made4uo.com


sirensiren
Excursionist
38 0 8

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