We use cookies to make HubSpot's community a better place. Cookies help to provide a more personalized experience and relevant advertising for you, and web analytics for us. To learn more, and to see a full list of cookies we use, check out our Cookie Policy (baked goods not included).
Jul 31, 2020 1:39 AM
We have a custom chat triggering button for smaller devices like mobile on the sticky footer. Is there a way to remove the default chat triggering button/icon (only the icon not whole HubSpot chat function). The chat window is triggering using the following code:
onclick="window.hubspot.messages.EXPERIMENTAL_API.requestWidgetOpen()"
Thanks in advance.
Mar 21, 2022 5:21 PM
I want to add this functionality to our site, but our dev doesn't know how.
Aug 17, 2021 2:14 AM
Aug 16, 2021 3:09 PM
To add to @Kevin-C and @RicardoTerzella answers which should get you there... you can also use the window event global callback to adjust things after the widget has rendered... See this post
Aug 11, 2021 8:44 AM
Pinging this thread!
We have a PWA built with Angular.
On mobile devices we generally want the live chat icon to be present on all pages but on one page the icon will be in the way of other important buttons in the lower screen area. We would like to hide this icon and toggle the chat programmatically via another custom button we place somewhere else.
Is there a guide in css or any Javascript API we could call to temporarly hide the icon but not disable the functionality?
Aug 13, 2021 4:59 AM
Aug 13, 2021 10:05 AM - edited Aug 13, 2021 10:06 AM
Thanks @natsumimori
Hey @smartsites-comm
You could use a media query on said page that would hide the button.
Somethign like:
@media (max-width:768px) {
.the_widget_class {
display: none;
pointer-events: none;
}
}
Dec 2, 2020 10:06 AM
I have the same necessity. Could you solve your problem?
Dec 2, 2020 10:59 AM
Hey @RicardoTerzella
Could you please share your URL?
Thanks
Sharon
![]() | ¿Sabías que la Comunidad está disponible en Español? ¡Participa hoy en conversaciones en el idioma de tu preferencia,cambiando el idioma en tus configuraciones! Did you know that the Community is available in other languages? Join regional conversations by changing your language settings ! |
Dec 2, 2020 11:25 AM
Hi!
It's https://app.meuamigotemumsitio.com.br
Now I found a way to initialize the scripts but keep the widget closed using this:
window.hsConversationsSettings = {
loadImmediately: false
};
Associated to this, at my open chat button:
window.HubSpotConversations.widget.load();
window.HubSpotConversations.widget.open();
And that works fine. Ther performance is not soo good, but, ok.
The real problem is that when user closes the widget, the default open button is there again.
Regards
Aug 3, 2020 9:23 AM
So you talking about HubSpot live chat, and just want it not to appear on mobile devices correct? This is actually a setting for how it appears on devices.
-Edit your chat flow
-Click the Display tab on the left
-You will have sections here you can toggle for how things appear on desktop versus mobile devices.
Aug 4, 2020 3:25 AM - edited Aug 4, 2020 3:27 AM
Thanks for the response. @JustinPerkinsC
We need chat-functionality on mobile but that should be trigged with our custom button not default HubSpot chat button/icon. The default HubSpot chat button/icon should be hidden. Hide this icon: https://prnt.sc/trkkcq
Aug 3, 2020 6:06 AM
Hi @smartsites-comm ,
I will tag in some Community contributors here:
@JustinPerkinsC , @Chris-M Could you share your advice? Please feel free to tag in other members too!