MLD
January 6, 2023, 12:20pm
1
Hi,
I am having issues sizing a photo for the mobile homepage slide under the header. On desktop the photo looks great! However, on mobile the photo is completely out of scale. Is there any way for me to fix this?
I am using the Debutify theme.
Also the inverted logo doesn’t seem to work for the mobile homepage. Is there a way that I can change this?
www.zafaraair.com
Hello @MLD
I would like to give you a solution to support you:
Go to Online Store-> Theme-> Edit code
Open your theme.liquid theme file
Paste the below code before :
<style>
@media screen and (max-width: 769px){
.transparent-header--mobile .shopify-section.hero-section:first-child .hero-mobile-xlarge, .transparent-header--mobile .hero-first .hero-mobile-xlarge {
min-height: calc(62vh - 38px) !important;
}
.site-header__logo .mobile-logo {
display: block;
filter: invert(1);
}
.is-scrolling .mobile-logo.imgset.radius-none.lazyloaded {
filter: invert(0) !important;
}
}
</style>
Was my reply helpful? Please Like and Accept Solution. This mean alot to me.
1 Like
MLD
January 6, 2023, 12:36pm
3
Hey, the size was slightly adjusted but not completely. The logo looks good now. Thank you! This is what the mobile page currently looks like.
GO to online store > Theme > Action > edit code > section > Open your theme.liquid theme file
copy below code And paste code(header.liquid)
<style>
@media screen and (max-width: 769px){
.transparent-header--mobile .shopify-section.hero-section:first-child .hero-mobile-xlarge, .transparent-header--mobile .hero-first .hero-mobile-xlarge {
min-height: calc(62vh - 38px) !important;
}
.site-header__logo .mobile-logo {
display: block;
filter: invert(1);
}
.is-scrolling .mobile-logo.imgset.radius-none.lazyloaded {
filter: invert(0) !important;
}
}
</style>
1 Like
@MLD
Go to Online Store-> Theme-> Edit code
Open your theme.liquid theme file
Paste the below code before :
<style>
@media screen and (max-width: 769px){
.transparent-header--mobile .shopify-section.hero-section:first-child .hero-mobile-xlarge, .transparent-header--mobile .hero-first .hero-mobile-xlarge {
min-height: calc(30vh - 38px) !important;
}
.site-header__logo .mobile-logo {
display: block;
filter: invert(1);
}
.is-scrolling .mobile-logo.imgset.radius-none.lazyloaded {
filter: invert(0) !important;
}
}
</style>
Was my reply helpful? Please Like and Accept Solution. This mean alot to me.
1 Like
MLD
January 6, 2023, 12:45pm
6
Ok that worked. Thank you!
MLD
January 6, 2023, 1:07pm
7
One more question, is there a way that I can edit the code to change the inverted logo so that when you scroll it changed back to the original color?