The reason why the sticky element is not scrolling back up once the pushup element reaches it, is because the following class is applied to the #sticky element:
.et_pb_sidebar_0 {
padding-top:20px;
padding-right:20px;
padding-bottom:20px;
padding-left:20px;
margin-top:20px!important;
margin-right:20px!important;
margin-bottom:20px!important;
margin-left:20px!important;
box-shadow:0px 2px 18px 0px rgba(0,0,0,0.3)
}
The !important
parts in there is what’s keeping the element from going back up. If it’s at all possible to remove that !important
from there, my plugin will be able to do its job, though I can’t say if that results in other things you might not want.
Thank you for the prompt reply! I’m not very familiar with coding, is there a simple way I could remove it or additional CSS that would block it?
Thanks,
Thomas
You would need to edit the theme’s CSS files directly, but that would then be overwritten when the theme automatically updates.
A better way would be to use a child theme, but that will take a lot more coding/setup experience.
You might want to check the easiest way to do this with Divi’s support team.