Jump to content

Code for adding alternate banner image on mobile

Recommended Posts

  • Replies 1
  • Views 380
  • Created
  • Last Reply

Hi @KingdomCreativeCo


I see you have Index Collection as homepage and It has Introduction as the first section. 

Just add another section below Introduction. This would be for mobile add image that you built for mobile version.

And then add this in Custom CSS:

@media(min-width: 768px) {
    .homepage .Index section:nth-child(2) {
        display: none;

@media(max-width: 767px) {
    .homepage .Index section:first-child {
        display: none;

This css will hide the first section on mobile version and the newly added second section on the desktop version.


Let me know if you have any confusion.

Link to comment


This topic is now archived and is closed to further replies.

  • 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.