Hi qouiou ,
Glad to hear that the button appeared again!
Regarding the changes not reflecting on the live pages,
Could you perhaps open the console log then click on the publish button?
Do you see any error after clicking on publish?
Regarding Tawk, they seem to have an extensive API that we could use.
Here are some steps on how to use it with Buttonizer:
- Install and setup Tawk on your site using their official plugin.
- Add this script into the <head> of your site:
This should hide the Tawk chat button.
<script>
Tawk_API = Tawk_API || {};
Tawk_API.onLoad = function(){
for(chat of document.querySelectorAll("iframe[title='chat widget']:not(.open)")) {
chat.setAttribute("style", "display:none;")
}
}
Tawk_API.onChatMinimized = function(){
for(chat of document.querySelectorAll("iframe[title='chat widget']:not(.open)")) {
chat.setAttribute("style", "display:none;")
}
};
</script>
- Create a Buttonizer button using the button action, Javascript Function.
Then copy and paste this into the button's Javascript Code Editor:
Tawk_API.toggle()
Please let me know if there are any errors showing after clicking on publish!