No image being shown on password page on mobile - Dawn Theme

Solved

No image being shown on password page on mobile - Dawn Theme

emekayode
Explorer
58 2 11

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?

 

 

Accepted Solution (1)

webwondersco
Shopify Partner
1186 171 174

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;
}
}
Web Wonders | Shopify Partner | Connect here!
- Question answered? Mark as Accepted Solution, reply helpful? Click Like
- Hire me, if you want to design, re-design, develop a store, or make changes to the pre-built store.
- a small Coffee Tip would be greatly appreciated. :)..! Instagram

View solution in original post

Replies 8 (8)

SomeUsernameHe
Shopify Partner
519 58 112

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;
}

 

Have I helped? Consider putting coffee in my mouth!
Buy Me a Coffee
emekayode
Explorer
58 2 11

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;
  }
}
SomeUsernameHe
Shopify Partner
519 58 112

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;
}
}

 

Have I helped? Consider putting coffee in my mouth!
Buy Me a Coffee

webwondersco
Shopify Partner
1186 171 174

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;
}
}
Web Wonders | Shopify Partner | Connect here!
- Question answered? Mark as Accepted Solution, reply helpful? Click Like
- Hire me, if you want to design, re-design, develop a store, or make changes to the pre-built store.
- a small Coffee Tip would be greatly appreciated. :)..! Instagram
emekayode
Explorer
58 2 11

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 

emekayode_0-1708112593742.png

 

SomeUsernameHe
Shopify Partner
519 58 112

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. 

Have I helped? Consider putting coffee in my mouth!
Buy Me a Coffee
webwondersco
Shopify Partner
1186 171 174

@emekayode Add below CSS to show the banner in full height:

 

@media(max-width:749px){
body .banner__media{
height:100vh;
}
}
Web Wonders | Shopify Partner | Connect here!
- Question answered? Mark as Accepted Solution, reply helpful? Click Like
- Hire me, if you want to design, re-design, develop a store, or make changes to the pre-built store.
- a small Coffee Tip would be greatly appreciated. :)..! Instagram
emekayode
Explorer
58 2 11

that worked perfectly, thank you