fixed position for the trigger button

Status
Not open for further replies.

mrp

New User
Joined
Jan 21, 2021
Messages
4
Reaction score
0
Hi :)
Can I replace the floating minimized bubble, with a static button/link/bubble in ANY way? I just need the trigger to be in a fixed place.

I am given the option to change this parameter: Live Chat > Styling > Minimized button: Bubble - BUT there is no other values to select. I assume there should be an other value (Tab). Is it a bug??

https://www.3cx.com/live-chat/free-wordpress-plugin/docs/gutenberg/#h.5fg2ysvsq2ae is nice, but the bubble -off cause should be replaced then!... Otherwise I just have a fixed button + a floating bubble... Who would need that? What is wrong here? THANKS!!
 

Attachments

  • Skærmbillede 2021-01-21 kl. 11.54.06.png
    Skærmbillede 2021-01-21 kl. 11.54.06.png
    70.7 KB · Views: 5
  • Skærmbillede 2021-01-21 kl. 12.18.51.png
    Skærmbillede 2021-01-21 kl. 12.18.51.png
    16.8 KB · Views: 5
Hello @mrp ,

What I can propose is to utilize the gutenberg, but combine it with Javascript that actually will hide the minimized bubble.

The gutenberg will trigger the chat window without showing the minimized bubble.

The button #id that the javascript should hide should be the "wplc-chat-button".
 
  • Like
Reactions: mrp
Thanks for pointing me in the right direction!!
Something like this:
JavaScript:
<script> function hidebubble() {
  document.getElementById("wplc-chat-button").style.display = "none";
} </script>
? I have not used javascript before, but understand I must put it in the header.

I have tried to put this in WP CSS:

HTML:
#wplc-chat-button .button_3Kb46 .minimized-button_3cubb .bubble_Shtpk
{
    visibility: hidden !important;
}

Where am I wrong?
 
Last edited:
Give it a try on the following. This is a workaround as we said and we cannot guarantee that will remain as is in the future.

document.getElementsByTagName("call-us")[0].shadowRoot.querySelectorAll("#wplc-chat-button")[0].style.display="none"
 
Status
Not open for further replies.

Forum statistics

Threads
112,148
Messages
590,963
Members
165,168
Latest member
Stephan Eusebe