Jump to content

WhatsApp on squarespace sites

Go to solution Solved by tuanphan,

Recommended Posts

@tuanphan I could really use some help. I searched everywhere and the only thing I could find was "how to add a line on squarespace" 😞

Edited by RA1800
Link to comment
  • 2 months later...
Posted (edited)
On 5/25/2023 at 7:28 AM, SmallSitesSarah said:

 

 

Thanks! Tip for those of us that use the basic subscription and can't inject code: I found this free Get Button widget. You can see an example on my website. Go to your footer and insert an "Embed" block. Then go to "Code Snippet" and paste this code. 

<!-- GetButton.io widget -->
<script type="text/javascript">
    (function () {
        var options = {
            whatsapp: "YOUR NUMBER WITH HYPHENS", // WhatsApp number
            call_to_action: "Message us", // Call to action
            button_color: "#FF6550", // Color of button
            position: "right", // Position may be 'right' or 'left'
        };
        var proto = 'https:', host = "getbutton.io", url = proto + '//static.' + host;
        var s = document.createElement('script'); s.type = 'text/javascript'; s.async = true; s.src = url + '/widget-send-button/js/init.js';
        s.onload = function () { WhWidgetSendButton.init(host, proto, options); };
        var x = document.getElementsByTagName('script')[0]; x.parentNode.insertBefore(s, x);
    })();
</script>
<!-- /GetButton.io widget -->

 

This works with community links as well and it is a lifesaver! Thank you for sharing. 

Edited by sayreambrosio

Sayre

Design: (Recently rolled into the Italian Journey under Services)

Author Coordinates: https://bio.site/sayreambrosio

Italian Journey: https://bio.site/ambrosiosjrnyhm

Link to comment
  • 2 weeks later...
On 6/20/2023 at 9:40 AM, tuanphan said:

You can change _blank to _self

image.png.5319af1990012e813fcda9ce32292fc7.png

Hello @tuanphan Thank you so much for your help. I have the same problem. The change you suggested is added but WA is still opening in a new window. Is it possible to get a chat bubble to open up within the website? Thank you so much!

www.artmuse.es 

Link to comment
On 6/16/2024 at 12:28 AM, Dragi said:

Hello @tuanphan Thank you so much for your help. I have the same problem. The change you suggested is added but WA is still opening in a new window. Is it possible to get a chat bubble to open up within the website? Thank you so much!

www.artmuse.es 

I just tested and it loads whatsapp in current window. Did you figure it out?

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

Link to comment
On 6/17/2024 at 10:06 AM, tuanphan said:

I just tested and it loads whatsapp in current window. Did you figure it out?

Right! I misunderstood, I thought there is an option to have a chat bubble within the website but I found out its a subscription based widget. I'll leave it at this for now.
Thank you for checking it out

Link to comment
On 6/20/2024 at 3:02 AM, Dragi said:

Right! I misunderstood, I thought there is an option to have a chat bubble within the website but I found out its a subscription based widget. I'll leave it at this for now.
Thank you for checking it out

Yes. This usually require to use a 3rd party widget/tool.

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

Link to comment
On 6/28/2024 at 11:52 PM, samnorris04 said:

Hello,

Is there a way to do this without it being code injection? Can this be done on CSS?

If you use my code, you can edit Site Footer > Add a Block > Choose Code > Then paste same code to Code Block

 

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

Link to comment
On 7/1/2024 at 11:05 PM, samnorris04 said:

Hi @tuanphan

I've tried this and it stays in the footer. This is the site here: https://www.cartersfacilities.co.uk/

Let me know if you could help with this. Thank you!

It shows fine to me. Can you describe in detail of problem?

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

×
×
  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.