I have my live chat icon from Shopify active and the rewards app. On mobile, the icon causes an obstruction view once the cart drawer is opened. I need help with hiding the icons when the cart drawer pops open.
hey @yonicque try this one and follow these steps
Go to online store ----> themes ----> go to three Dots ----> edit code ---->find theme.liquid files ----> place the code ---->before the body ----->
@MeshCode My theme.css is locked. However, yesterday the smile rewards developers provided me with a code: #smile-ui-container,#smile-ui-lite-container { z-index: 6 !important;} which hide the Rewards icon perfectly, but when I tried to alter it using shopifychat it did not work. Can you look into this?
Understand what you’re doing there. Z index is like invisible planes (not the flying ones), that go from the screen to your face. The higher the number, the closer it is to your face.
Your cart drawer should have a z index of 30. So anything that has a z index of more than 30, is going to be “on top”. Less than 30 is “behind”. You’re not hiding anything, but rather placing things on top of one another.
So how can I hide it for the Shopify inbox - I tried #shopify-chat-ui-container,#shopify-chat-ui-lite-container { z-index: 6 !important;} and it didn’t work
@Maximus3 I tried #shopify-chat { z-index: 20 !important;} and it didn’t work and I also tried #shopify-chat { z-index: 6 !important;} and that didn’t work either
Yes you can add anything to that code. Simply add a comma after the other one:
inbox-online-store-chat, #trustedsite-tm-image
You can also add the 15% bubble: .needsclick
Trying to target the exact selector is a little tricky sometimes and needs trial and error. Sometimes it has 4 different names, 2 IDs, and you just have to guess the correct one.