Discuss and resolve questions on Liquid, JavaScript, themes, sales channels, and site speed enhancements.
I'm using a "size chart" block on my product pages to display a popup, which show individual pages built for each product type in Admin. The block uses a dynamic source tied to a metafield. Everything is working as expected, except the title from the page in Admin is appearing in the popup. I've seen a few discussions in the community on this issue, but they're either unresolved, or the solution isn't working for me because the pages and/or snippets do not exist in my theme. I'm using the Effortless theme, but I cannot find any references to page.title or similar in the "main-product.liquid" section. Any recommendations on how to resolve this?
Solved! Go to the solution
This is an accepted solution.
Hi @bbryan84
This is Noah from PageFly - Shopify Page Builder App
Please add this code to your theme.liquid above the </head> to get this solved
Step 1: Online Stores > Themes > More Actions > Edit code
Step 2: click on theme.liquid and paste the code above the </head>
<script>
const pfInterval = setInterval(()=>{
const content = document.querySelector('.size-chart_content')
if (content) {
clearInterval(pfInterval)
content.childNodes[0].remove()
}
},100)
setTimeout(() => {
clearInterval(pfInterval)
},15000)
</script>
Hope this can help you solve the issue
Best regards,
Noah | PageFly
Please let me know if it works by giving it a Like or marking it as a solution!
PageFly - #1 Page Builder for Shopify merchants.
All features are available from Free plan. Live Chat Support is available 24/7.
Hi @bbryan84 Could you share a product page URL to check?
- Helpful? Like and Accept solution!
- 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.
Could you check in popup code to appear size chart and try to remove product.handle to check if it solve this issue?
- Helpful? Like and Accept solution!
- 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.
Hello @bbryan84 ,
Please read the theme documentation, there you can find the exact way to config it.
btw I think the theme author uses the metafield intestinally mean you need to find it in the code and remove it.
Thanks
This is an accepted solution.
Hi @bbryan84
This is Noah from PageFly - Shopify Page Builder App
Please add this code to your theme.liquid above the </head> to get this solved
Step 1: Online Stores > Themes > More Actions > Edit code
Step 2: click on theme.liquid and paste the code above the </head>
<script>
const pfInterval = setInterval(()=>{
const content = document.querySelector('.size-chart_content')
if (content) {
clearInterval(pfInterval)
content.childNodes[0].remove()
}
},100)
setTimeout(() => {
clearInterval(pfInterval)
},15000)
</script>
Hope this can help you solve the issue
Best regards,
Noah | PageFly
Please let me know if it works by giving it a Like or marking it as a solution!
PageFly - #1 Page Builder for Shopify merchants.
All features are available from Free plan. Live Chat Support is available 24/7.
@bbryan84
Maybe this solution @PageFly-Noah will work but not a right way.
Yep that worked like a charm. Thank you!
Great but lets once confirm from @PageFly-Noah , Is this the right way ?
And what are the drawbacks of it?
By 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, 2024Thanks to everyone who participated in our AMA with 2H Media: Marketing Your Shopify St...
By Jacqui Sep 6, 2024