Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
Advanced Search
  • 0

7.1 different banner image for mobile


ando_337

Question

Hi there,

I found several threads for this topic but nothing that has worked for me.
this is my landing page url:
deleted

 

for the mobile view, I would like to hide the current (desktop) banner image and replace it with this one:

jpeg

 

when using the code below, I also hide the logo image which I want to stay.

Quote

 

#collection {
#page .page-section:nth-of-type(1) {
img {
display: none;
}

#collection
.sqs-block-image img {
display: block;
}
  
#collectio
.section-background {
background: url("https://images.squarespace-cdn.com/content/5f6f38062982486253146867/1606691949125-TVQIWD26HVHIITUNDUCH/eco-chalets-mobile.jpg?format=100w&content-type=image%2Fjpeg");
background-repeat: no-repeat;
background-size: 100%;
}
}
}

 

 

I couldn't figure out the desktop banner id...

Hope anyone can help me.
Thanks a lot!

Edited by ando_337
Link to post
  • Answers 4
  • Created
  • Last Reply

Top Posters For This Question

Top Posters For This Question

Popular Posts

Add to Home > Design > custom CSS /* remove bottom banner in desktop */ @media screen and (min-width:768px) { [data-section-id="5fcb7072a51c5a1401a9ba5e"] { display: none; } } /* remove

4 answers to this question

Recommended Posts

  • 0
On 12/5/2020 at 6:48 PM, ando_337 said:

Thank you!
I added the mobile banner underneath:
https://www.inneco.de/eco-basic-eco-premium

Add to Home > Design > custom CSS

/* remove bottom banner in desktop */
@media screen and (min-width:768px) {
[data-section-id="5fcb7072a51c5a1401a9ba5e"] {
    display: none;
}
}
/* remove top banner on mobile */
@media screen and (max-width:767px) {
[data-section-id="5fc3e08408845d092400c576"] {
    display: none;
}
}

 

Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment


×
×
  • Create New...