Discuss and resolve questions on Liquid, JavaScript, themes, sales channels, and site speed enhancements.
I have three custom liquid links to add podcast players that are supposed to be only supposed to be visible on one page as well as an image banner. However, they are appearing on all of the pages of my website. How do I limit them to only show on one page? Thank you
Hi @ericavinyl
You need to create a separate page template for that page and then add a custom liquid section on that template only.
This article will help you out.
https://help.shopify.com/en/manual/online-store/themes/theme-structure/templates
- Helpful? Like and Accept solution! Or Support me: Buy Coffees
- Reton: Loyalty & Rewards - Earn points through tasks, redeem for discounts, and enjoy exclusive VIP rewards!
- Ryviu - Reviews & QA app: Collect product reviews, import reviews from AliExpress, Amazon, Etsy, Walmart, Shopee, Dhgate and CSV.
- Lookfy Gallery: Lookbook Image: Easy and fast to create Photo Gallery, Lookbook, Shop The Look.
- Reelfy‑Shoppable Videos+Reels: Create shoppable videos to engage customers and drive more sales.
- Enjoy 1 month of Shopify for $1. Sign up now.
unfortunately it isn't giving me the solution I need
Hi @ericavinyl,
I hope you are doing well. Did you try to add conditional to restrict visiblity of custom liquid content. For example, you could wrap your content like this:
{% if request.path == "/" %}
// your content
{% endif %}
or retrict by template
{% if request.page_type == "index" %}
Hope this fixes your issue! 🥰
B2B Wholesale Solution: Streamline your B2B operation with advanced features like wholesale registration forms, custom pricing.
B2B Portal, Quote, Net 30: Speed up purchasing and streamline your quotation process with advanced features like quick order, request for quote.
B2B Lock Password Protect: Easily control access to pages, products, and pricing with robust features.
BSS Commerce - Full-service eCommerce Agency I Use Shopify for 1$ in the first month now
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