Title: opening with button
Last modified: March 27, 2023

---

# opening with button

 *  Resolved [aaronfrazier](https://wordpress.org/support/users/aaronfrazier/)
 * (@aaronfrazier)
 * [3 years, 2 months ago](https://wordpress.org/support/topic/opening-with-button/)
 * Trying to implement tidio chat with a different button. It is working with a 
   few problems. Here is the script i used. I added the touchstart to make it work
   on a mobile as click click event didnt work on mobile.
 *     ```wp-block-code
       (function() {function onTidioChatApiReady() {window.tidioChatApi.hide();window.tidioChatApi.on("close", function() {window.tidioChatApi.hide();});}if (window.tidioChatApi) {window.tidioChatApi.on("ready", onTidioChatApiReady);} else {document.addEventListener("tidioChat-ready", onTidioChatApiReady);}document.querySelector(".fm-item-2-4").addEventListener("click", function() {window.tidioChatApi.show();window.tidioChatApi.open();});document.querySelector(".fm-item-2-4").addEventListener("touchstart", function() {window.tidioChatApi.show();window.tidioChatApi.open();});})();
       ```
   
 * Issue 1 – On mobile it functions great, opens etc. If you swipe left or right
   to close the chat, the browser is not scrollable and kind of frozen. Links still
   are clickable on the page but can not scroll. If you click close on the chat,
   all works as expected.
 * Issue 2 – works as expected on desktop on any non woocommerce pages. On woocommerce
   pages it opens then quickly closes.
 * Any suggestions? im not good with javascipt so maybe I have an issue there
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fopening-with-button%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 7 replies - 1 through 7 (of 7 total)

 *  Thread Starter [aaronfrazier](https://wordpress.org/support/users/aaronfrazier/)
 * (@aaronfrazier)
 * [3 years, 2 months ago](https://wordpress.org/support/topic/opening-with-button/#post-16598472)
 * Issue 2 is a problem with the yith ajax filters so I can work around that by 
   not using it I suppose if need be and just use the regular wordpress filters.
 *  Plugin Support [kamiltidio](https://wordpress.org/support/users/kamiltidio/)
 * (@kamiltidio)
 * [3 years, 2 months ago](https://wordpress.org/support/topic/opening-with-button/#post-16598600)
 * Hi there!
   My name is Kamil, I’m from the Tidio technical support, and I’ll gladly
   help you with your inquiry 🙂It sounds like some hashing issues – could you please
   try adding this code to your page and let me know if it changed anything?
 *     ```wp-block-code
       <script>
         (function() {
           function onTidioChatApiReady() {
             window.tidioChatApi.setFeatures({ mobileHash: false });
           }
   
   
           if (window.tidioChatApi) {
             window.tidioChatApi.on('ready', onTidioChatApiReady)
           } else {
             document.addEventListener('tidioChat-ready', onTidioChatApiReady);
           }
         })();
       </script>
       ```
   
 * I’ll be looking forward to your reply!
 *  Thread Starter [aaronfrazier](https://wordpress.org/support/users/aaronfrazier/)
 * (@aaronfrazier)
 * [3 years, 2 months ago](https://wordpress.org/support/topic/opening-with-button/#post-16598686)
 * That kind of works now on mobile. With the chat open swiping now not only closes
   it but goes back, which in my case brought me to the last website I had visited.
   I deally, atleast in my mind, swiping would simply close the chat
 *  Thread Starter [aaronfrazier](https://wordpress.org/support/users/aaronfrazier/)
 * (@aaronfrazier)
 * [3 years, 2 months ago](https://wordpress.org/support/topic/opening-with-button/#post-16599089)
 * Actually I lied! Swiping closes the chat and goes back. But now hitting the close
   button gives the same result of frozen scroll as before with swiping. So that
   just flipped which part is having the issue.
 *  Plugin Support [kamiltidio](https://wordpress.org/support/users/kamiltidio/)
 * (@kamiltidio)
 * [3 years, 2 months ago](https://wordpress.org/support/topic/opening-with-button/#post-16603258)
 * Hey, thank you for writing back.
 * It seems that there might be some issues with how your website interacts with
   Tidio and the custom codes we prepared. As troubleshooting would require more
   information, would you be able to drop us an email at [support@tidio.net](https://wordpress.org/support/topic/opening-with-button/support@tidio.net?output_format=md)?
 * Please mention in the email to escalate the case to the 2nd level team 🙂
   I appreciate
   considering my request!
 *  Thread Starter [aaronfrazier](https://wordpress.org/support/users/aaronfrazier/)
 * (@aaronfrazier)
 * [3 years, 2 months ago](https://wordpress.org/support/topic/opening-with-button/#post-16603610)
 * Ok, email sent. This appears to be a very similar issue to this, [Issue with back event on mobile | WordPress.org](https://wordpress.org/support/topic/issue-with-back-event-on-mobile/),
   only that the fix doesn’t really fix it, only give a different goofy result with
   having to go back to unlock the screen. Closing doesn’t seem to fully close even
   though it looks like it is.
 *  Thread Starter [aaronfrazier](https://wordpress.org/support/users/aaronfrazier/)
 * (@aaronfrazier)
 * [3 years, 2 months ago](https://wordpress.org/support/topic/opening-with-button/#post-16610768)
 * Just so this isn’t a dead thread that people are wondering about the fix, there
   isn’t one. Tidio seems to be aware of the issue for sometime. Priority for a 
   fix they say is low. It appears on all devices I have tried with, both android
   and ios. Using your own button doesn’t really seem to be an option contrary to
   what their website kind if makes you believe.

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘opening with button’ is closed to new replies.

 * ![](https://ps.w.org/tidio-live-chat/assets/icon-256x256.gif?rev=3465139)
 * [Tidio – Live Chat & AI Chatbots](https://wordpress.org/plugins/tidio-live-chat/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/tidio-live-chat/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/tidio-live-chat/)
 * [Active Topics](https://wordpress.org/support/plugin/tidio-live-chat/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/tidio-live-chat/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/tidio-live-chat/reviews/)

 * 7 replies
 * 2 participants
 * Last reply from: [aaronfrazier](https://wordpress.org/support/users/aaronfrazier/)
 * Last activity: [3 years, 2 months ago](https://wordpress.org/support/topic/opening-with-button/#post-16610768)
 * Status: resolved