Html help wa button

Solved

Html help wa button

sao
Explorer
237 0 22

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
Shopify Partner
626 165 238

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.

View solution in original post

Replies 5 (5)

PageFly-Amelia
Shopify Partner
626 165 238

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.

sao
Explorer
237 0 22

I only make it function on product page

sao
Explorer
237 0 22

I wanna make it appear only on product pages

PageFly-Amelia
Shopify Partner
626 165 238

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.

sao
Explorer
237 0 22

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