Shopify themes, liquid, logos, and UX
URL: https://swampclo.com/password?_fd=0
I have an image which is visible on the desktop version but my password page is just white.
How do I make the desktop image also the image shown on the mobile?
Solved! Go to the solution
This is an accepted solution.
@emekayode Please add the below line of CSS code at the end of your base.css file.
@media(max-width:749px){
body .banner__media:first-child{
display:block;
}
}
I would search your theme files for "section-image-banner.css" and remove the following code:
@media screen and (max-width: 749px)
.banner__media:first-child {
display: none;
}
or you can add the following css to the bottom of your base.css:
@media screen and (max-width: 749px)
.banner__media:first-child {
display: block !Important;
}
I couldn't find that exact code but I found this code in base.css and removed it but the password page image still doesnt show up
@media screen and (max-width: 749px) {
.small-hide {
display: none !important;
}
}
@media screen and (min-width: 750px) and (max-width: 989px) {
.medium-hide {
display: none !important;
}
}
@media screen and (min-width: 990px) {
.large-up-hide {
display: none !important;
}
}
You can put that CSS back in base.css, just at the very bottom add this:
@media screen and (max-width: 749px) {
.banner__media:first-child {
display: block !Important;
}
}
This is an accepted solution.
@emekayode Please add the below line of CSS code at the end of your base.css file.
@media(max-width:749px){
body .banner__media:first-child{
display:block;
}
}
this worked but is there a reason why the image is not showing up fully its cutting off half and leaving the bottom half white
That would be a responsiveness issue. The best way is to serve two different images, one for mobile devices and one for desktops.
Since the screens are rotated compared to each other it is hard to fit the same image fullscreen on both devices.
@emekayode Add below CSS to show the banner in full height:
@media(max-width:749px){
body .banner__media{
height:100vh;
}
}
that worked perfectly, thank you
2m ago Learn the essential skills to navigate the Shopify admin with confidence. T...
By Shopify Feb 12, 2025Learn how to expand your operations internationally with Shopify Academy’s learning path...
By Shopify Feb 4, 2025Hey Community, happy February! Looking back to January, we kicked off the year with 8....
By JasonH Feb 3, 2025