Solved

Html help wa button

sao
Explorer
199 0 19

Hi,I wanna have this whats app button only on My product pages.. How I can put this condition please?

website: www.aiciavem.ro

Accepted Solution (1)
PageFly-Amelia
Navigator
292 87 129

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!


PageFly - #1 Page Builder for Shopify merchants.


All features are available from Free plan. Live Chat Support is available 24/7.


Optimize your store’s mobile shopping experience with the Blum theme.

View solution in original post

Replies 5 (5)

PageFly-Amelia
Navigator
292 87 129

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!


PageFly - #1 Page Builder for Shopify merchants.


All features are available from Free plan. Live Chat Support is available 24/7.


Optimize your store’s mobile shopping experience with the Blum theme.

sao
Explorer
199 0 19

I only make it function on product page

sao
Explorer
199 0 19

I wanna make it appear only on product pages

PageFly-Amelia
Navigator
292 87 129

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!


PageFly - #1 Page Builder for Shopify merchants.


All features are available from Free plan. Live Chat Support is available 24/7.


Optimize your store’s mobile shopping experience with the Blum theme.

sao
Explorer
199 0 19

Thanks a lot Amelia! ❤️ I was pretty close, instead of “ contains “ I ve placed “ === “ so it wasnt working ..Thanks