How can I prevent admin page titles from showing in my product popup?

Solved

How can I prevent admin page titles from showing in my product popup?

bbryan84
Tourist
6 0 2

 

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?

2023-09-05_21-01-06.png

Accepted Solution (1)

PageFly-Noah
Shopify Partner
1317 233 269

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>

PageFlyNoah_0-1693968212233.png

 


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.

View solution in original post

Replies 8 (8)

Dan-From-Ryviu
Shopify Partner
9193 1841 1873

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.

Dan-From-Ryviu
Shopify Partner
9193 1841 1873

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.

Guleria
Shopify Partner
3395 676 957

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

- If helpful then please Like and Accept Solution.
- Drop an email   if you are looking for quick fix or any customization ( paid services )
- Email: guleriathakur43@gmail.com
- Try GEMPAGES a great page builder

PageFly-Noah
Shopify Partner
1317 233 269

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>

PageFlyNoah_0-1693968212233.png

 


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.

Guleria
Shopify Partner
3395 676 957

@bbryan84 
Maybe this solution @PageFly-Noah  will work but not a right way. 

- If helpful then please Like and Accept Solution.
- Drop an email   if you are looking for quick fix or any customization ( paid services )
- Email: guleriathakur43@gmail.com
- Try GEMPAGES a great page builder
bbryan84
Tourist
6 0 2

Yep that worked like a charm. Thank you!

Guleria
Shopify Partner
3395 676 957

Great but lets once confirm from @PageFly-Noah ,  Is this the right way ? 
And what are the drawbacks of it?    

- If helpful then please Like and Accept Solution.
- Drop an email   if you are looking for quick fix or any customization ( paid services )
- Email: guleriathakur43@gmail.com
- Try GEMPAGES a great page builder