Solved

How can I make my chat bubble stay in front while scrolling?

tearetapetes
Tourist
4 0 1

I added a chat bubble to my website using the following code after <head> on theme.liquid.

 

My store is www.tearetapetes.com.br and my theme is Habitat.

 

 

<link rel="stylesheet" href="[link here]">
<a id="robbu-whatsapp-button" target="_blank" href="[link here]">
  <img src="[link here]">
</a>

 

 

 

The bubble appears, fine. But when you scroll down, it stays behind some elements. Please check this video or screenshot attached to understand.

 

SCR-20231213-jssc.jpeg

 

https://watch.screencastify.com/v/yno7mjVDMfJLJsOj3Tu2

 

How do I fix that? Thanks!

Accepted Solutions (2)

KabirDev
Shopify Partner
248 61 67

This is an accepted solution.

Hi @tearetapetes, add this code to your theme's CSS file.

#robbu-whatsapp-button {
    z-index: 99999999 !important;
}
- Control payment methods visibility at checkout by KlinKode PayRules app.
- Contact me directly at shahriar@kabirdev.com

View solution in original post

Made4uo-Ribe
Shopify Partner
6423 1540 1909

This is an accepted solution.

Hi @tearetapetes 

Check this one.

From your Shopify admin dashboard, click on "Online Store" and then "Themes".

Find the theme that you want to edit and click on "Actions" and then "Edit code".

In the "Assets" folder, click on "base.css, style.css or theme.css" file, depending on which file your theme uses to store its CSS styles. At the bottom of the file, add the following CSS code:

 

a#robbu-whatsapp-button {
    z-index: 99 !important;
}

 

And Save. 

Result:

Made4uoRibe_0-1702482672541.png

 

Please don't forget to Like and Mark Solution to the post that helped you. Thanks!

If this fixed your issue Likes and Accept as Solution is highly appreciated. Coffee tips fuels my dedication.
Get EXPERIENCED Shopify developers at affordable rates—visit Made4Uo.com for quick quote!
Do not lost your Shopify store! Get FREE trial with ✔️ Rewind Backup: Automatic, reliable, stress-free.

View solution in original post

Replies 3 (3)

KabirDev
Shopify Partner
248 61 67

This is an accepted solution.

Hi @tearetapetes, add this code to your theme's CSS file.

#robbu-whatsapp-button {
    z-index: 99999999 !important;
}
- Control payment methods visibility at checkout by KlinKode PayRules app.
- Contact me directly at shahriar@kabirdev.com
tearetapetes
Tourist
4 0 1

Thanks! It worked.

Made4uo-Ribe
Shopify Partner
6423 1540 1909

This is an accepted solution.

Hi @tearetapetes 

Check this one.

From your Shopify admin dashboard, click on "Online Store" and then "Themes".

Find the theme that you want to edit and click on "Actions" and then "Edit code".

In the "Assets" folder, click on "base.css, style.css or theme.css" file, depending on which file your theme uses to store its CSS styles. At the bottom of the file, add the following CSS code:

 

a#robbu-whatsapp-button {
    z-index: 99 !important;
}

 

And Save. 

Result:

Made4uoRibe_0-1702482672541.png

 

Please don't forget to Like and Mark Solution to the post that helped you. Thanks!

If this fixed your issue Likes and Accept as Solution is highly appreciated. Coffee tips fuels my dedication.
Get EXPERIENCED Shopify developers at affordable rates—visit Made4Uo.com for quick quote!
Do not lost your Shopify store! Get FREE trial with ✔️ Rewind Backup: Automatic, reliable, stress-free.