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
6047 1452 1790

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!

Please don't forget to 

Like

 and 

Mark Solution 

to the post that helped you. Thanks!
Sip, savor, and support – your

Coffee Tip

 helps us keep coding magic.❤️❤️❤️
For FREE, premium codes, and trusted, knowledgeable Shopify developers, visit us at

Made4uo.com


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
6047 1452 1790

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!

Please don't forget to 

Like

 and 

Mark Solution 

to the post that helped you. Thanks!
Sip, savor, and support – your

Coffee Tip

 helps us keep coding magic.❤️❤️❤️
For FREE, premium codes, and trusted, knowledgeable Shopify developers, visit us at

Made4uo.com