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

How to make my logo invertable on mobile, the same as it is on desktop

How to make my logo invertable on mobile, the same as it is on desktop

timo23
Tourist
13 0 1

Hello I would like to invert my logo on mobile the same way it inverts on desktop.

I cannot upload the inverted logo for mobile through the theme. is there a custom way to do so?

website: https://4bubs.com/

password: timo23

 

Thank you for all the help!

Replies 9 (9)

sahilsharma9515
Shopify Partner
1280 165 249

Hi @timo23 If you want the same logo on the mobile as of desktop you can add this code so that the same logo will show on the mobile as well.

 

Please add this code

<style>
@media screen and (max-width: 769px) {
    .site-header__logo .inverted-logo {
        display: block !important;
    }

@media screen and (max-width: 769px) {
    .site-header__logo .mobile-logo {
        display: none;
    }
}
</style>

 

Please follow the steps:

  1. Login in shopify admin.
  2. Click on the Online Store.
  3. Then click on the button next to Customize in live Theme.
  4. Click Edit Code.
  5. Search theme.liquid in the code in left hand side in your theme.
  6. Add the following code in the bottom of the file above </body> tag

Result:

sahilsharma9515_0-1729666346421.png

Hopefully it will help you. If yes then Please don't forget hit Like and Mark it as solution!

 

Best Regards

Sahil

- Your

 Coffee Tip 

can create magic in coding ❤️❤️

- Need a Shopify Developer? CHAT ON WHATSAPP or EMAIL ME !


- Hopefully the solution will help you. If yes then Please hit

 Like 

and

 Mark it as solution! ❤️


timo23
Tourist
13 0 1

This does not seem to work.

do not have theme.liquid . Either theme.js.liquid or theme.min.js.liquid or theme.scss.liquid

sahilsharma9515
Shopify Partner
1280 165 249

Hi @timo23 Its pretty strange that you don't have theme.liquid and you have other theme files.

 

No issues you can add the code in the in css files just Search theme.css/base.css/index.css/style.css and add the code in the end.

 

here is the updated code:

 

@media screen and (max-width: 769px) {
    .site-header__logo .inverted-logo {
        display: block !important;
    }

@media screen and (max-width: 769px) {
    .site-header__logo .mobile-logo {
        display: none;
    }
}

 

Hopefully it will help you. If yes then Please don't forget hit Like and Mark it as solution!

 

Best Regards

Sahil

- Your

 Coffee Tip 

can create magic in coding ❤️❤️

- Need a Shopify Developer? CHAT ON WHATSAPP or EMAIL ME !


- Hopefully the solution will help you. If yes then Please hit

 Like 

and

 Mark it as solution! ❤️


timo23
Tourist
13 0 1

Which css files, how do I search these?

Sorry I'm a total noob when it gets to these

sahilsharma9515
Shopify Partner
1280 165 249

@timo23 Can you please specify what theme you are using? Also if you are not able to find css file you can add the above code in scss file.

 

Hopefully it will help you. If yes then Please don't forget hit Like and Mark it as solution!

 

Best Regards

Sahil

- Your

 Coffee Tip 

can create magic in coding ❤️❤️

- Need a Shopify Developer? CHAT ON WHATSAPP or EMAIL ME !


- Hopefully the solution will help you. If yes then Please hit

 Like 

and

 Mark it as solution! ❤️


timo23
Tourist
13 0 1

I'm using Debutify theme.

I have found the theme.liquid and have added the code you have said.

However now it shows inverted logo all the time, and it doesnt swap back to normal logo.

timo23
Tourist
13 0 1

I have found the theme.liquid and have added the code you have said.

However on the mobile it only shows the inverted logo and not the normal one, once I scroll pass.

Dan-From-Ryviu
Shopify Partner
12073 2359 2539

You are getting an issue with style of your site. 

Screenshot 2024-10-23 at 14.05.21.png

 

- Helpful? Like & Accept solution!
- Ryviu - Product Reviews & QA app: Collect customer reviews, import reviews from AliExpress, Amazon, Etsy, Walmart, Dhgate and CSV.
- Lookfy Gallery: Lookbook Image - Gain customers with photo gallery, video & shoppable image.
- Reelfy‑Shoppable Videos+Reels: Create shoppable videos to engage customers and drive more sales.
- Enjoy 1 month of Shopify for $1. Sign up now.

timo23
Tourist
13 0 1

I was just trying to add the code the person above posted. Have been fixed now.