Shopify themes, liquid, logos, and UX
Hi,
I want to change the default variant ring size from 48 to 52 on the PDP.
Thanks
Hello There,
Please share your store URL and password.
So that I will check and let you know the exact solution here.
Hey @JKIRK
Could you please provide your Store URL and, if applicable, the Password too? Your cooperation is greatly appreciated!
Best Regards,
Moeed
Hello There,
1. In your Shopify Admin go to online store > themes > actions > edit code
2. Find Asset > theme.css and paste this at the bottom of the file:
li.HorizontalList__Item {
font-size: 17px!important;
}
Hi @ZestardTech I want the default option highlighted to be 52 instead of 48 for the variant
Hi @JKIRK
You can follow the following steps:
1. Please go to the Online Store
2. Then Edit Code
3. Please find the theme.liquid file
4. And add the following code in theme.liquid file above the </body> tag
<script>
$('ul.SizeSwatchList li').each(function(){
var val = $(this).children('input').val();
if(val == '52'){
$(this).children('input').prop("checked", true);
}else{
$(this).children('input').prop("checked", false);
}
});
</script>
If this solution is worked, then please Like this and Mark this as accepted solution!
Laddi
@JKIRK
To select the variant have to add jS accordingly for this have to check the File code according to theme.
It would be great if you can provide collab access.
Thanks
Starting a B2B store is a big undertaking that requires careful planning and execution. W...
By JasonH Sep 23, 2024By investing 30 minutes of your time, you can unlock the potential for increased sales,...
By Jacqui Sep 11, 2024We appreciate the diverse ways you participate in and engage with the Shopify Communi...
By JasonH Sep 9, 2024