Shopify themes, liquid, logos, and UX
Hi, I would like the the collapsible tabs to disappear in case they are empty since not all of this products have those descriptions included.
My store is: https://gqe85oezhfsnd274-50820350128.shopifypreview.com
Solved! Go to the solution
This is an accepted solution.
Hi @Ked
You can try to add this code to Custom CSS in Online Store > Themes > Customize > Theme settings and check
at-collapsible:has(.collapsible-content__inner:empty) {
display: none;
}
- Helpful? Like & Accept solution! - Support me: Buy me a coffee
- Ryviu - Product Reviews & QA app: Collect customer reviews, import reviews from AliExpress, Amazon, Etsy, Walmart, Dhgate and CSV.
- Reton: Loyalty & Rewards - Earn points through tasks, redeem for discounts, and enjoy exclusive VIP rewards!
- Lookfy Gallery: Lookbook Image - Gain customers with photo gallery, video & shoppable image
- Reelfy‑Shoppable Videos+Reels: Create shoppable videos to engage customers and drive more sales.
- En...Sign up now.
This is an accepted solution.
Doing that now, Thanks for your assistance. I'll let you know if it works
This is an accepted solution.
This is an accepted solution.
Very welcome!
- Helpful? Like & Accept solution! - Support me: Buy me a coffee
- Ryviu - Product Reviews & QA app: Collect customer reviews, import reviews from AliExpress, Amazon, Etsy, Walmart, Dhgate and CSV.
- Reton: Loyalty & Rewards - Earn points through tasks, redeem for discounts, and enjoy exclusive VIP rewards!
- Lookfy Gallery: Lookbook Image - Gain customers with photo gallery, video & shoppable image
- Reelfy‑Shoppable Videos+Reels: Create shoppable videos to engage customers and drive more sales.
- En...Sign up now.
This is an accepted solution.
Hi @Ked
You can try to add this code to Custom CSS in Online Store > Themes > Customize > Theme settings and check
at-collapsible:has(.collapsible-content__inner:empty) {
display: none;
}
- Helpful? Like & Accept solution! - Support me: Buy me a coffee
- Ryviu - Product Reviews & QA app: Collect customer reviews, import reviews from AliExpress, Amazon, Etsy, Walmart, Dhgate and CSV.
- Reton: Loyalty & Rewards - Earn points through tasks, redeem for discounts, and enjoy exclusive VIP rewards!
- Lookfy Gallery: Lookbook Image - Gain customers with photo gallery, video & shoppable image
- Reelfy‑Shoppable Videos+Reels: Create shoppable videos to engage customers and drive more sales.
- En...Sign up now.
This is an accepted solution.
Doing that now, Thanks for your assistance. I'll let you know if it works
This is an accepted solution.
It works 🎉
Thank you 🙏
This is an accepted solution.
Very welcome!
- Helpful? Like & Accept solution! - Support me: Buy me a coffee
- Ryviu - Product Reviews & QA app: Collect customer reviews, import reviews from AliExpress, Amazon, Etsy, Walmart, Dhgate and CSV.
- Reton: Loyalty & Rewards - Earn points through tasks, redeem for discounts, and enjoy exclusive VIP rewards!
- Lookfy Gallery: Lookbook Image - Gain customers with photo gallery, video & shoppable image
- Reelfy‑Shoppable Videos+Reels: Create shoppable videos to engage customers and drive more sales.
- En...Sign up now.
Hi @Ked
Welcome to Shopify Community.
You can disable the view if the page content on those blocks are empty.
You can change your main-product to achieve this.
Go to Online Store -> Themes -> Customize
Search for the file main-product.liquid.
Search for the code {%- when 'collapsible_tab' -%}
Insert the following code right below the above code.
{% if block.settings.page.content != null %}
& put {% endif %} right above
{%- when 'quantity_selector' -%}
This should do the trick.
Thank you.
Sajat
-------------------------------------------------------------------------------------------
If this is helpful, please Like and Accept the solution.
Want to modify or custom changes on store? Let me help.
Learn how to build powerful custom workflows in Shopify Flow with expert guidance from ...
By Jacqui May 7, 2025Did You Know? May is named after Maia, the Roman goddess of growth and flourishing! ...
By JasonH May 2, 2025Discover opportunities to improve SEO with new guidance available from Shopify’s growth...
By Jacqui May 1, 2025