Jump to content

Is there a way to label photos of variants?

Recommended Posts

Site URL: https://www.dirtyhairanddiamonds.com/shop/mala-beads

On desktop it is easy to toggle through the variant (color) drop down menu to see a visual representation of each variant. But on mobile, the variant (color) drop down menu is under the stack of all images for that product. Is there a way to label the photos with the variant name without having to add them to the images? Or is there way to move the drop down menu to the top of the photo stack? 

Link to comment
  • Replies 2
  • Views 472
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Posted Images

13 hours ago, amyjoW27 said:

Site URL: https://www.dirtyhairanddiamonds.com/shop/mala-beads

On desktop it is easy to toggle through the variant (color) drop down menu to see a visual representation of each variant. But on mobile, the variant (color) drop down menu is under the stack of all images for that product. Is there a way to label the photos with the variant name without having to add them to the images? Or is there way to move the drop down menu to the top of the photo stack? 

Add to Settings > Advanced > code Injection > Footer > then save & check on real mobile

<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
<script>
jQuery(document).ready(function($){
if (jQuery(window).width() < 640) {
$('.ProductItem-details .product-variants').insertAfter('section.ProductItem-details.ProductItem-details--mobile');
}
});
</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
On 6/12/2021 at 2:34 AM, tuanphan said:

Add to Settings > Advanced > code Injection > Footer > then save & check on real mobile


<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
<script>
jQuery(document).ready(function($){
if (jQuery(window).width() < 640) {
$('.ProductItem-details .product-variants').insertAfter('section.ProductItem-details.ProductItem-details--mobile');
}
});
</script>

 

Thanks for your help with this but it didn't fix the issue:

On mobile:

It did move the drop down menu to the top of the product page but it reproduced the drop down list under the drop down menu as radial buttons. Neither the drop down list or the radial button changed the first photo like it does on desktop. 

IMG_5720.PNG

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.