Discuss and resolve questions on Liquid, JavaScript, themes, sales channels, and site speed enhancements.
Hi, is there a way to hide a product accordion (created using Meta Field with a collapsible row) on just specific product pages?
Solved! Go to the solution
This is an accepted solution.
Hello @Rm014
It's GemPages support team and glad to support you today.
You can change custom code to
{% if product.handle contains 'teddy-hip-fanny-pack-highlighter-yellow' or product.handle contains 'product-handle-2' or product.handle contains 'product-handle-3' %}
<style>
.product__info-wrapper .product__info-container .product__accordion:last-of-type{
display: none;
}
</style>
{% endif %}
I hope the above is useful to you.
Kind & Best regards,
GemPages Support Team
Hello @Rm014
Can you give me your page URL( with pass if your store password is enabled) so I can check it and maybe give you a solution?
Kind & Best regards,
GemPages Support Team
sure. here it is, that's one of the product pages i'd like to hide 1 of the accordion.
Hello @Rm014
It's GemPages support team and glad to support you today.
Do you want to hide this accordion only on product Teddy Hip Fanny Pack - Highlighter Yellow
If I am correct, You can follow these steps:
1. Go to Online Store->Theme->Edit code
2. Open your theme.liquid file, paste the below code before </head>
{% if product.handle contains 'teddy-hip-fanny-pack-highlighter-yellow' %}
<style>
.product__info-wrapper .product__info-container .product__accordion{
display: none;
}
</style>
{% endif %}
I hope the above is useful to you.
Kind & Best regards,
GemPages Support Team
just the last accordion and to 2-3 products.
This is an accepted solution.
Hello @Rm014
It's GemPages support team and glad to support you today.
You can change custom code to
{% if product.handle contains 'teddy-hip-fanny-pack-highlighter-yellow' or product.handle contains 'product-handle-2' or product.handle contains 'product-handle-3' %}
<style>
.product__info-wrapper .product__info-container .product__accordion:last-of-type{
display: none;
}
</style>
{% endif %}
I hope the above is useful to you.
Kind & Best regards,
GemPages Support Team
thank you so much
It's my pleasure to help 😘.
Shopify and our financial partners regularly review and update verification requiremen...
By Jacqui Mar 14, 2025Unlock the potential of marketing on your business growth with Shopify Academy's late...
By Shopify Mar 12, 2025Learn how to increase conversion rates in every stage of the customer journey by enroll...
By Shopify Mar 5, 2025