web snippet inside a div only on one page
# support
j
Hey guys, I could definitely use your help now. I'm deep-frying my brain trying to figure out how to make the web snippet show inside a div in only one page of my website, as opposed to at the bottom of every page in my website. I've tried different ways, but haven't had much luck. The only instance where I managed to do it, the button doesn't connect. I mean, the button is where I want it to be, but once you click on it, it starts connecting but never gets around to actually making the call. What am I missing? any pointers will be hugely appreciated. thnx
s
Hey @jrodex you have to make changes in the vapi button css to make it center but as it is loaded as iframe, and you will be loading the Vapi script at last. So, it's better to hide vapi default button and create a new button of your own and then initate the call from there.
j
Thanks for your reply. I'm afraid I'm clueless when it comes to coding. Could you be so kind as to tell me how would I be able to link the new button to vapi so as to be able to initiate the call? From what little I know, and correct me if I'm wrong, but when setting the button's behavior once it's clicked (redirect to url, send email, initiate a call, popup, etc), that's where I need to set the button to initiate the call to vapi, right? if so, what should I enter there? thanks again
I managed to use a shortcode plugin and put the widget's code inside it, along with some more code to make sure the button stays there. It's not ideal, but it works, so...
4 Views