Jump to content

Different slideshow on the homepage for mobile and desktop view

Go to solution Solved by tuanphan,

Recommended Posts

I have inserted this code into Website Tools>Code Injection>Header:

  @media only screen and (max-width: 750px) {
    .page-section:nth-of-type(1) {
        display: none;

@media only screen and (min-width: 750px)  {
    .page-section:nth-of-type(2) {
        display: none;

This works for the home page but also applies to every other page on the site.  Could someone help me apply this to only the home page?

Link to comment
  • Replies 2
  • Views 1.1k
  • Created
  • Last Reply

Top Posters In This Topic

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.