Jump to content

Switch block order for mobile (text & picture)

Go to solution Solved by Beyondspace,

Recommended Posts

  • Solution
58 minutes ago, Phex said:

Site URL: http://spandovia.de/

Hey everyone,

I just purchased the annual subscription and am very satisfied with my website on desktop. However, I realized on mobile version the order of blocks & texts is a little weird. 

Page: http://www.spandovia.de/ueber-uns
I'm trying to move this picture: https://prnt.sc/26vvb44 
on top of that very text block: https://prnt.sc/26vvbo9

Cheers!

Try adding to Home > Design > Custom Css

@media only screen and (max-width: 767px) {
  section[data-section-id="61e162c50352595445aa7490"]  .content  .sqs-layout .row > .col > .row {
    display: flex;
    flex-wrap: wrap
  }

  section[data-section-id="61e162c50352595445aa7490"]  .content  .sqs-layout .row > .col > .row  > .col{
    width: 100% !important  
  }
  section[data-section-id="61e162c50352595445aa7490"]  .content  .sqs-layout .row > .col > .row  > .col:last-child {
    order: 1;
  }

  section[data-section-id="61e162c50352595445aa7490"]  .content  .sqs-layout .row > .col > .row  > .col:first-child {
    order:2;
  }
}

Let me know how it works on your site

Support me by pressing 👍 if this useful for you

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

My testing

image.png.a63ab7c9652334beb12c873eaca73c5a.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
4 hours ago, bangank36 said:

Try adding to Home > Design > Custom Css

@media only screen and (max-width: 767px) {
  section[data-section-id="61e162c50352595445aa7490"]  .content  .sqs-layout .row > .col > .row {
    display: flex;
    flex-wrap: wrap
  }

  section[data-section-id="61e162c50352595445aa7490"]  .content  .sqs-layout .row > .col > .row  > .col{
    width: 100% !important  
  }
  section[data-section-id="61e162c50352595445aa7490"]  .content  .sqs-layout .row > .col > .row  > .col:last-child {
    order: 1;
  }

  section[data-section-id="61e162c50352595445aa7490"]  .content  .sqs-layout .row > .col > .row  > .col:first-child {
    order:2;
  }
}

Let me know how it works on your site

Support me by pressing 👍 if this useful for you

Thank you so much! It worked.

Link to comment
  • 4 weeks later...
On 2/20/2022 at 8:24 PM, bangank36 said:

Try adding to Home > Design > Custom Css

@media only screen and (max-width: 767px) {
  section[data-section-id="61e162c50352595445aa7490"]  .content  .sqs-layout .row > .col > .row {
    display: flex;
    flex-wrap: wrap
  }

  section[data-section-id="61e162c50352595445aa7490"]  .content  .sqs-layout .row > .col > .row  > .col{
    width: 100% !important  
  }
  section[data-section-id="61e162c50352595445aa7490"]  .content  .sqs-layout .row > .col > .row  > .col:last-child {
    order: 1;
  }

  section[data-section-id="61e162c50352595445aa7490"]  .content  .sqs-layout .row > .col > .row  > .col:first-child {
    order:2;
  }
}

Let me know how it works on your site

Support me by pressing 👍 if this useful for you

May I know how it can be done for my site too? 

www.madebycommonhands.com/shop/p/ring-bearer-box PW:crafty

I would like the additional info(accordion) to be placed right after the product description.

Thanks!

Edited by nigeitangg
Link to comment
6 hours ago, nigeitangg said:

May I know how it can be done for my site too? 

www.madebycommonhands.com/shop/p/ring-bearer-box PW:crafty

I would like the additional info(accordion) to be placed right after the product description.

Thanks!

1. We need to use js to move the additional info in the Production detail.

2. Use Css to reorder the accordion block on product-item detail

You can add to Home > Settings > Advanced > Code injection, choose Footer

<script>
  (function() {
    window.addEventListener('DOMContentLoaded', () => {
      const addInfo = document.querySelector('.ProductItem-additional');
      const productDetail = document.querySelector('.ProductItem-details');
      if(productDetail && addInfo) {
        productDetail.appendChild(addInfo);
      }
    }) 
  })()
</script>
<style>
  .ProductItem-details .ProductItem-additional {
    order: 5;
  }  
</style>

Let me know how it works on your site

Support me by pressing 👍 if this useful for you

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
On 3/15/2022 at 10:26 PM, bangank36 said:

1. We need to use js to move the additional info in the Production detail.

2. Use Css to reorder the accordion block on product-item detail

You can add to Home > Settings > Advanced > Code injection, choose Footer

<script>
  (function() {
    window.addEventListener('DOMContentLoaded', () => {
      const addInfo = document.querySelector('.ProductItem-additional');
      const productDetail = document.querySelector('.ProductItem-details');
      if(productDetail && addInfo) {
        productDetail.appendChild(addInfo);
      }
    }) 
  })()
</script>
<style>
  .ProductItem-details .ProductItem-additional {
    order: 5;
  }  
</style>

Let me know how it works on your site

Support me by pressing 👍 if this useful for you

Thanks for that! It moved it to the side but I am still unable to move it below the description. Right now it is below the button.

Link to comment

I check it is under description at the moment

image.thumb.png.ef2dcb851533bc92d422d217d73a099b.png

Is it what you mean or something else?

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

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.