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

Greeting, it's BeyondSpace, I am Squarespace dev focus on provide solutions to enhance feature that squarespace.com can't provide.
Feel free to check my current Squarespace Plugins Developement: Enable Pinch/Zoom on lightbox, Delivery Date Picker, Lightbox Studio plugin
If you find my answer fit your need, let's leave a like or upvote so others with the same issue can find their solution. 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.