Jump to content

How do I make two different cover pages for mobile and desktop?

Recommended Posts

Site URL: https://www.health-ability.com

Good evening, 

I am writing on behalf of my client to try and solve an issue with our cover page. We are actually very happy with the current one which was designed by a graphic designer especially for this project. Unfortunately it doesn't look good on mobile because of the text which is not centered and gets cut off. So, I was wondering if there is a way to use two different cover pages and show one instead of the other based on the device. In this case, I could make another one in compliance with mobile responsiveness best practices. 

Looking forward to your reply, 

Thank you in advance, 

Best regards, 

Allegra Hamrin


IMG_B247F8A50BB8-1.thumb.jpeg.4585fd4e68a8fb6d4fe34e2a35fe6155.jpeg

Link to comment
  • Replies 1
  • Views 390
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Posted Images

You can add this to Cover Page Header to set new image on mobile only

<style>
  @media screen and (max-width:640px) {
  .sqs-slice-gallery-item.content-fill {
    background-image: url(https://cdn.pixabay.com/photo/2021/09/15/15/48/seals-6627197__340.jpg);
    background-repeat: no-repeat;
    background-size: cover;
}
.sqs-slice-gallery-item.content-fill img {
    visibility: hidden;
}
  }
</style>

 

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

Link to comment

Create an account or sign in to comment

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

×
×
  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.