Hi folks,
Hope you’re all doing well. Sorry for bothering again, but I ran into some small issue and I’m sure you have some great idea to fix that as always ๐
Long story short:
1. I added some HTML widgets to the footer and right sidebar
2. These widgets caused some white space only on mobile on single posts on the right side of the screen (they were overflowing I guess)
3. Because of that white space I added this CSS:
html {
width: 100%;
margin: 0px;
padding: 0px;
overflow-x: hidden;
}
4. It solved my problem, the white space on mobile is gone, but now something else happened
5. My right sidebar is no longer sticky (even after removing the HTML widgets from it)
This was the code that was making my sidebar sticky on single posts:
.single #right-sidebar {
position: sticky;
top: 0;
}
Is there anyway to keep this sidebar sticky, but also to have the HTML snippet for the overflow so I don’t have that white space on mobile on the right side of the screen?
Please let me know if you have any suggestions ๐
Cheers