- This topic has 7 replies, 3 voices, and was last updated 3 years, 7 months ago by
David.
-
AuthorPosts
-
October 2, 2018 at 1:21 pm #691877
David
Hi,
I’m having trouble with sticky navigation on one of my sites. It goes behind post content when scrolling down.
I have Simple CSS installed but I can’t seem to target the right class or ID to set the z-index higher. I tried it in Developer Tools on Chrome and it seemed to fix the issue, but i don’t know what class or ID to add it to in Simple CSS to fix it on my site.
Cheers,
DavidGeneratePress 2.1.4GP Premium 1.7.2October 2, 2018 at 2:28 pm #691907Leo
StaffCustomer SupportHi David,
Is there a specific page I should be looking at?
The single product page you linked doesn’t seem to have any problems.
Let me know ๐
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/October 2, 2018 at 3:33 pm #691938David
Hi Leo,
Sorry, I was testing out a different fix for it and it seemed to have worked. I have removed the fix now if you can have another look. Just in case I run into more trouble with it.
Thanks
DavidOctober 2, 2018 at 8:55 pm #692088Leo
StaffCustomer SupportStill don’t think I’m seeing the issue.
Am I missing something?
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/October 3, 2018 at 2:03 am #692192David
Hi Leo,
When you scroll down, the image and text under the description tab show in front of the sticky navigation. I need to set the z-index for the sticky nav higher than 100 to fix the issue.
You might see what I mean a bit clearer on this product: aintnailz.ie/store/products/gel-nail-technology/
When you scroll down the sticky nav bar goes behind the content thats under the description tab.
I cleared cache on my site just in case.
Thanks again for your help,
DavidOctober 3, 2018 at 2:19 am #692207David
StaffCustomer SupportHi there,
try this:
.mp_product .mp_product_tab_content-current { z-index: 90 !important; }
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/October 4, 2018 at 1:43 am #693084David
Hi David,
I tried the code above and it worked, thanks a million. Here’s the fix I came up with:
.mp_product .mp_product_tab_content-current { z-index: 99; }
Does it matter which class I target, mp_product or the generatepress sticky nav? I’m just curious.
Thanks very much for your help. Great support as always ๐
David
October 4, 2018 at 2:36 am #693120David
StaffCustomer SupportYou can increase the z-index of the navigation to achieve the same results.
In this instance the tabs are the problem so better to fix it at the source.Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/ -
AuthorPosts
- You must be logged in to reply to this topic.