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

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

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


  

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

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

How do I fix that? Thanks!

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

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

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:

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

Thanks! It worked.