Jump to content

Change order of blocks on mobile without section info to add to css

Recommended Posts

Site URL: http://beachrock.co.uk

Hi, I know there are a couple of threads from last year on this, I've tried coding myself but I'm having issues because using all the tools at my disposal, I seem unable to find the section ID of the section I want to change. I would like to switch the order of two blocks on mobile for the following page: http://beachrock.co.uk/projects

I would like the third video to have the title "Plymouth" above it, then for the video to appear and then for the text about said video to appear underneath (in the mobile version only). As mentioned, I can't find the section IDs hence am finding this way more difficult than I thought it would be! Any advice would be greatly appreciated, thanks.

Holly

Link to comment
  • Replies 1
  • Views 385
  • Created
  • Last Reply
8 hours ago, HollyM said:

Site URL: http://beachrock.co.uk

Hi, I know there are a couple of threads from last year on this, I've tried coding myself but I'm having issues because using all the tools at my disposal, I seem unable to find the section ID of the section I want to change. I would like to switch the order of two blocks on mobile for the following page: http://beachrock.co.uk/projects

I would like the third video to have the title "Plymouth" above it, then for the video to appear and then for the text about said video to appear underneath (in the mobile version only). As mentioned, I can't find the section IDs hence am finding this way more difficult than I thought it would be! Any advice would be greatly appreciated, thanks.

Holly

You can use this

@media only screen and (max-width: 768px) {
    section[data-section-id="60111647d1976425af1bd893"] .sqs-col-12 > .row:nth-child(2) {
        display: flex;
        flex-wrap: wrap;
    }
    section[data-section-id="60111647d1976425af1bd893"] .sqs-col-12 > .row:nth-child(2) .sqs-col-6 {
      width: 100% !important;
      order: 1
    }
    section[data-section-id="60111647d1976425af1bd893"] .sqs-col-12 > .row:nth-child(2) .sqs-col-6:first-child {
      order: 2;
    }
}

image.thumb.png.d874943b2481eca87eaa9030a860d63f.png

BeyondSpace - Squarespace Website Developer

🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox)
🗓️ Delivery Date Picker (Squarespace Date picker form field)
💫 Gallery block 7.1 workaround
🥳 Sparkplugin Customisations Browsers (Browse +100 Spark plugin customisations)
🥳 Elfsight Template Browsers (Browse +1000 Elfsight widget Templates)

If you find my answer useful, let's leave a like or upvote so others with the same issue can find their solution. Thank you!

 

Link to comment

Archived

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.