Personalized checkout and custom promotions with Shopify Scripts
Hi professional,
I am using product tab feature
But I want to change 1 thing
When I open product tab A, then open product tab B, the product tab A still expand together product tab B. Like shown in the picture
I want when I click product tab B, the product tab A will be automatically close. It only show 1 product tab at 1 time
Then the theme supporter tell me to fix this in this file but doesn't tell me what code I should replace. Here is the liquid file https://pastebin. pl/view/5da040f6
Can you check and help me?
Thanks a lot
Solved! Go to the solution
This is an accepted solution.
Hi @amfintl
You can achieve this by putting the below code in the file accordion_information.liquid file
<script>
$(document).ready(function(){
$('.collapse').on('show.bs.collapse', function () {
$('.collapse.show').each(function(){
$(this).collapse('hide');
});
});
});
</script>
Thank you.
DP
This is an accepted solution.
Hi @amfintl
You can achieve this by putting the below code in the file accordion_information.liquid file
<script>
$(document).ready(function(){
$('.collapse').on('show.bs.collapse', function () {
$('.collapse.show').each(function(){
$(this).collapse('hide');
});
});
});
</script>
Thank you.
DP
Thank you sir, it works perfectly 😍
Hey Community! As the holiday season unfolds, we want to extend heartfelt thanks to a...
By JasonH Dec 6, 2024Dropshipping, a high-growth, $226 billion-dollar industry, remains a highly dynamic bus...
By JasonH Nov 27, 2024Hey Community! It’s time to share some appreciation and celebrate what we have accomplis...
By JasonH Nov 14, 2024