#130474 Need to add onCLick event to button

Landing Forums Jupiter WordPress Theme Need to add onCLick event to button

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • Perry Albrigo

    We have a mobile interface on the home page that has a button that activates the Live Chat dialog box (the Live Chat button). Live Chat has told us how to create the button — but I can’t figure out how to do it in WP Bakery–

    Here is the link for how to do it:

    you need this method: https://developers.livechat.com/docs/extending-chat-widget/javascript-api/#maximize added as an onClick

    and more here:

    using an onclick: https://www.w3schools.com/jsref/event_onclick.asp We also have a guide showing implementation of a custom button that opens the chat, it has a few additional steps that you won’t need but you’ll likely find it helpful overall: https://www.notion.so/LiveChat-API-101-Creating-a-custom-chat-bubble-5900d5474a454d13a7abc36f28c2e188

    Nodari Support Team

    Hi Perry

    You may use HTML element of WPbackery and button created in HTML with the predefined ID that can be used to catch your event, your coe may look something like this:

    <button class="chat_button" onclick="LiveChatWidget.call('maximize')" src="insert image address here" />Chat oppen </button>

    then you need to style that button with css code:

    .chat_button {
    
    }

    Please also note, I just gave a direction, implementation of the third party plugin or codes is outside of our support scope, you need to contact providers of that solution for support

    Regards

Viewing 2 posts - 1 through 2 (of 2 total)
You must be logged in to reply to this topic.
Login