Site logo

Archived topic

Add z-index to sticky navigation on mobile

4 replies · Started by Rostyslav on July 11, 2021

Viewing posts 1–5 of 5

Hello,

How can I add a z-index = 1 for mobile sticky nav in order to not happen this: https://ibb.co/w48jxhL

Thanks!

Hi there,

Can you explain a bit more about how you want it to appear?

I don't think the setting will stick unless you modify the plugin's script for this.

Setting a z-index through CSS won't work as the script will keep adding z-index: 100; inline to the element every time the site user scrolls.

Hello,

I just added z-index: 1 inspecting element and everything works: https://ibb.co/ZMPbRdt

But how to add that code in customize css in wordpress? Which code should i write?

Thanks!

Is that the proper way of doing this? Just adding z-index=1

*, ::after, ::before {
    box-sizing: inherit;
    z-index: 1;
}

Hi there,

I don't think you'll need to add additional CSS for this.

Go to this gb-container which holds the google business review content:
https://www.screencast.com/t/WjgORCeJ

Set its Outer z-index to 1.

Let me know if this helps :)

This archived topic is closed to new replies.