Support » Plugin: Sticky Menu & Sticky Header » Sticky box goes under other divs
Sticky box goes under other divs
-
Hi,
I’ve got, it seems, a pretty common problem, but I can’t manage to solve it with z-index, so I’m looking for help.
The box on the right of the page is supposed to contain a link for a downloadable element, which works within the column where the box has been originally placed.
But as I scroll and go outside of sticky-element-placeholder sticky-element-active, the link (and the hover animation as well) stop working, as the box slides under the rest of the columns.
I’ve tried putting z-index to 9999. What can I do to solve this issue ?The page I need help with: [log in to see the link]
-
Hi,
Try making the parent element sticky; the whole widget, not just its content.Hi,
Thank you for your answer. I tried creating a custom class for the column (.floating-box) in which the text section (.floating-rule) is, and apply the sticky properties to it.
It still has no effect on my issue, so I’m afraid I might have misunderstood you :/So far I tried :
– the class of the text editor widget
– the class of the column in which the text editor widget isYou didn’t misunderstand me π That’s the only thing you can thinker with + z-index. If neither of those things help, then, unfortunately, the only solution is to put the widget somewhere else in the DOM tree or mess with the z-index of other elements.
Well, thanks maestro !
Actually your last answer pointed me to the right direction !
The trick was actually to mess with the z-index of the whole section.So in a nuthsell :
– making the text editor widget sticky didn’t work
– putting 9999 z-index on the text editor widget didn’t work
– making the column of the widget sticky gave the same result, and was not necessary
– making the whole section sticky wouldn’t work as it contained other widgets in it
– putting 9999 z-index on the section while making only the text editor widget gave the expected resultThanks a lot for the help π
-
This reply was modified 2 years ago by
seccyeth.
Glad to hear you got it working π
If you have a minute, please leave a review. Itβs what keeps support going. Thank you π https://wordpress.org/support/plugin/sticky-menu-or-anything-on-scroll/reviews/#new-post
-
This reply was modified 2 years ago by
- The topic ‘Sticky box goes under other divs’ is closed to new replies.