Shopify themes, liquid, logos, and UX
Hi,I wanna have this whats app button only on My product pages.. How I can put this condition please?
website: www.aiciavem.ro
Solved! Go to the solution
This is an accepted solution.
Hello @sao
I'm so sorry for the confusion. Could you please try my code below to see if it displays on the product pages?
{% if template contains "product" %}
// Your code
{% endif %}
Please let me know if it works by giving it a Like or marking it as a solution!
➜ Optimize your Shopify store with PageFly Page Builder (Free plan available)
➜ Weekly updated Shopify tutorials on YouTube
All features are available from Free plan. Live Chat Support is available 24/7.
Hello @sao
This is Amelia at PageFly - Shopify Advanced Page Builder app.
You can embed your WhatsApp button code within this conditional statement to ensure it only functions on your HomePage.
{% if template == "index" %}
// Your code
{% endif %}
Hoping my solution helps you solve your problem.
Best regards,
Amelia | PageFly
Please let me know if it works by giving it a Like or marking it as a solution!
➜ Optimize your Shopify store with PageFly Page Builder (Free plan available)
➜ Weekly updated Shopify tutorials on YouTube
All features are available from Free plan. Live Chat Support is available 24/7.
I only make it function on product page
I wanna make it appear only on product pages
This is an accepted solution.
Hello @sao
I'm so sorry for the confusion. Could you please try my code below to see if it displays on the product pages?
{% if template contains "product" %}
// Your code
{% endif %}
Please let me know if it works by giving it a Like or marking it as a solution!
➜ Optimize your Shopify store with PageFly Page Builder (Free plan available)
➜ Weekly updated Shopify tutorials on YouTube
All features are available from Free plan. Live Chat Support is available 24/7.
Thanks a lot Amelia! ❤️ I was pretty close, instead of “ contains “ I ve placed “ === “ so it wasnt working ..Thanks
Learn how to expand your operations internationally with Shopify Academy’s learning path...
By Shopify Feb 4, 2025Hey Community, happy February! Looking back to January, we kicked off the year with 8....
By JasonH Feb 3, 2025Expand into selling wholesale with Shopify Academy’s learning path, B2B on Shopify: Lau...
By Shopify Jan 28, 2025