Jump to content

Move images under product page

Recommended Posts

  • Replies 19
  • Views 1.5k
  • Created
  • Last Reply

Top Posters In This Topic

You can add this code to Website > Website Tools > Code Injection > Footer

<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.7.0/jquery.min.js"></script>
<script>
  jQuery(document).ready(function($){
  $('div#block-5f21465b141b11697cc4').insertAfter('.ProductItem-gallery-slides');
})
</script>

 

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

Link to comment

https://round-rhubarb-hrce.squarespace.com/shop/p/original/p/ns-szanp

Use this new code

<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.7.0/jquery.min.js"></script>
<script>
  jQuery(document).ready(function($){
  $('div#block-5f21465b141b11697cc4').insertAfter('.ProductItem-gallery-slides');
})
</script>
<style>
  .ProductItem-gallery-slides {
    width: 100% !important;
}
section.ProductItem-gallery {
    flex-direction: column;
}
</style>

 

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

Link to comment
On 11/29/2023 at 6:34 AM, oliverlittlewood said:

This is perfect and exactly what I'm looking for! Thanks so much, absolute life saver!

Final ask promise, is there a way to make them smaller?

Screenshot 2023-11-28 at 23.31.04.png

Add this under

<style>
  section.ProductItem-gallery .gallery-block img {
    max-width: 150px;
    height: auto !important;
}
</style>

 

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

Link to comment

You have this code in CSS box, it caused problem

image.png.99819d775ddae48f808e6e56988e7ad3.png

add this to Code Injection > Footer to override it

<style>
  @media screen and (max-width:767px) {
  [class*="type-products"] .gallery-block .slide {
    height: auto !important;
    margin: initial !important;
    width: 45% !important;
}

[class*="type-products"] .gallery-block .sqs-gallery {
    display: flex !important;
    justify-content: center;
    align-items: center;
}

section.ProductItem-gallery .gallery-block img {
    max-width: unset !important;
    margin: initial !important;
    width: 100% !important;
    height: auto !important;
}
  }
</style>

image.png.77e10e76f7e952ffd0284f79b1858dfd.png

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

Link to comment
On 12/6/2023 at 7:52 PM, tuanphan said:

You have this code in CSS box, it caused problem

image.png.99819d775ddae48f808e6e56988e7ad3.png

add this to Code Injection > Footer to override it

<style>
  @media screen and (max-width:767px) {
  [class*="type-products"] .gallery-block .slide {
    height: auto !important;
    margin: initial !important;
    width: 45% !important;
}

[class*="type-products"] .gallery-block .sqs-gallery {
    display: flex !important;
    justify-content: center;
    align-items: center;
}

section.ProductItem-gallery .gallery-block img {
    max-width: unset !important;
    margin: initial !important;
    width: 100% !important;
    height: auto !important;
}
  }
</style>

image.png.77e10e76f7e952ffd0284f79b1858dfd.png

Change to this new code

<style>
  @media screen and (max-width:767px) {
  [class*="type-products"] section.ProductItem-gallery .gallery-block .slide {
    height: auto !important;
    margin: initial !important;
    width: 45% !important;
}

[class*="type-products"] section.ProductItem-gallery .gallery-block .sqs-gallery {
    display: flex !important;
    justify-content: center;
    align-items: center;
}

section.ProductItem-gallery .gallery-block img {
    max-width: unset !important;
    margin: initial !important;
    width: 100% !important;
    height: auto !important;
}
  }
</style>

 

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

Link to comment

https://round-rhubarb-hrce.squarespace.com/shop/p/original/p/ns-szanp

Add this code under

<style>
  @media screen and (max-width:767px) {
  section.ProductItem-gallery .gallery-block img {
    left: 50% !important;
    transform: translateX(-50%) !important;
}
    section.ProductItem-gallery .gallery-block .margin-wrapper {
    margin: 0 !important;
}
section.ProductItem-gallery .gallery-block .content-fill {
    padding: unset !important;
    height: auto !important;
}
section.ProductItem-gallery .gallery-block {
    padding-bottom: 0px !important;
}

  }
</style>

 

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

Contact Customer Care - Learn CSS - Buy me a coffee (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.