Let's dive right into it:
How to set up your WhatsApp widget in Shopify
First of all, if you haven't generated your widget in our WhatsApp Widget Generator tool, do that first. Then, continue with the following steps to enable it in Shopify:
1. Open theme editor
Online store > Themes > ... > Edit code
2. Create a bubble.liquid snippet
Scroll in the left bar down to snippet > Add a new snippet.
Call it bubble(.liquid). Then, paste your generated widget code in there.
3. Add the functional code in theme
Scroll in the left bar to theme.liquid.
Place the following 2 lines of code within the <head> </head> section:
Then, place the following line within the <body> </body> section:
Now preview the store to see if it all works and publish the theme!