Wix Chat

How to add the wix chat app to your website and have visitors open the chat from clicking buttons or elements besides the standard default button?

I have multiple buttons and elements throughout my website that I would like for the wix chat to be opened from. I don’t want to use the default button that comes with the wix chat app because it’s very limited in design and placement.

I’m sure there is going to be coding involved. I have beginner to intermediate level coding experience, so please provide as much detail and basic step by step instruction as possible. I don’t think it should be extremely difficult and lengthy to do this. Once I figure out one I can then replicate to all the buttons/elements throughout my website.

Thanks everyone!

1 Like

I’m trying to do the same thing. I have a contact section on my site and instead of putting the directions “click the chat button below” I’d rather the chat app just open when they click the “Click to Chat” text.

This tutorial helped me some. https://www.wix.com/corvid/tutorial/how-to-add-custom-interactions-with-javascript

I adapted it for my purposes and made this code:
export function box5_click(event) {
$w(‘#wixChat1’).expand();
}

In other words when you click the box it should expand wix chat. But it’s not working. I’m not sure if it’s because the previewer doesn’t have the ability to simulate the wix chat or if for some reason wix chat doesn’t respond to expand()

Hi Lars and Daniel,

We just open Chat + Corvid integration functionality that will allow you to do those activities:
https://www.wix.com/corvid/reference/$w.Chatbox.html

Enjoy, Erez

It does not work, it gives an error: “…” does not exist on $w(“#chat”).