Shopify themes, liquid, logos, and UX
Hello I would like to invert my logo on mobile the same way it inverts on desktop.
As you scroll through the initial banner (slideshow) photo
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!
Solved! Go to the solution
This is an accepted solution.
Hi @timo23
Please add this code to theme.liquid file, before </body> in Online Store > Themes > Edit code then check and check again
<style>
@media (max-width: 749px) {
.sticky-header.is-scrolling .site-header__logo .inverted-logo {
display: none !important; }
.sticky-header.is-scrolling .site-header__logo .default-logo { display: block; }
}
</style>
- Helpful? Like & Accept solution!
- Ryviu - Product Reviews & QA app: Collect customer reviews, import reviews from AliExpress, Amazon, Etsy, Walmart, Dhgate and CSV.
- Reton: Loyalty & Rewards - Earn points through tasks, redeem for discounts, and enjoy exclusive VIP rewards!
- 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.
- En...Sign up now.
This is an accepted solution.
Please update code to this
{% if template == 'index' %}
<style>
@media (max-width: 749px) {
.sticky-header.is-scrolling .site-header__logo .inverted-logo {
display: none !important; }
.sticky-header.is-scrolling .site-header__logo .default-logo { display: block; }
}
</style>
{% else %}
<style>
@media (max-width: 749px) {
html .site-header__logo .inverted-logo { display: none !important; }
html .site-header__logo .default-logo { display: block !important; }
}
</style>
{% endif %}
- Helpful? Like & Accept solution!
- Ryviu - Product Reviews & QA app: Collect customer reviews, import reviews from AliExpress, Amazon, Etsy, Walmart, Dhgate and CSV.
- Reton: Loyalty & Rewards - Earn points through tasks, redeem for discounts, and enjoy exclusive VIP rewards!
- 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.
- En...Sign up now.
This is an accepted solution.
Hi @timo23
Please add this code to theme.liquid file, before </body> in Online Store > Themes > Edit code then check and check again
<style>
@media (max-width: 749px) {
.sticky-header.is-scrolling .site-header__logo .inverted-logo {
display: none !important; }
.sticky-header.is-scrolling .site-header__logo .default-logo { display: block; }
}
</style>
- Helpful? Like & Accept solution!
- Ryviu - Product Reviews & QA app: Collect customer reviews, import reviews from AliExpress, Amazon, Etsy, Walmart, Dhgate and CSV.
- Reton: Loyalty & Rewards - Earn points through tasks, redeem for discounts, and enjoy exclusive VIP rewards!
- 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.
- En...Sign up now.
I have added your code, and it worked almost perfectly.
However for instance when I go to product, the logo at the start is inverted. Once i scroll down it changes to original.
Any option to have it original all the time on all the pages that do not have slideshow banner image on top.
So inverted logo is only active while in overlay of banner, otherwise it is always original logo.
Attaching photo for reference
This is an accepted solution.
Please update code to this
{% if template == 'index' %}
<style>
@media (max-width: 749px) {
.sticky-header.is-scrolling .site-header__logo .inverted-logo {
display: none !important; }
.sticky-header.is-scrolling .site-header__logo .default-logo { display: block; }
}
</style>
{% else %}
<style>
@media (max-width: 749px) {
html .site-header__logo .inverted-logo { display: none !important; }
html .site-header__logo .default-logo { display: block !important; }
}
</style>
{% endif %}
- Helpful? Like & Accept solution!
- Ryviu - Product Reviews & QA app: Collect customer reviews, import reviews from AliExpress, Amazon, Etsy, Walmart, Dhgate and CSV.
- Reton: Loyalty & Rewards - Earn points through tasks, redeem for discounts, and enjoy exclusive VIP rewards!
- 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.
- En...Sign up now.
Thank you so much, greatly appreciated!
You are very welcome!
- Helpful? Like & Accept solution!
- Ryviu - Product Reviews & QA app: Collect customer reviews, import reviews from AliExpress, Amazon, Etsy, Walmart, Dhgate and CSV.
- Reton: Loyalty & Rewards - Earn points through tasks, redeem for discounts, and enjoy exclusive VIP rewards!
- 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.
- En...Sign up now.
Hey Community 👋 Did you know that March 15th is National Everything You Think Is W...
By JasonH Apr 1, 2025Discover how to increase the efficiency of commerce operations with Shopify Academy's l...
By Jacqui Mar 26, 2025Shopify and our financial partners regularly review and update verification requiremen...
By Jacqui Mar 14, 2025