Archived topic
Add a sticky sidebar
4 replies · Started by SOMNATH on March 21, 2021
Hello,
Can you guide me to make a sticky sidebar on both sidebar.
Kindly look into the screenshot: https://ibb.co/4JXPTbk
Website post link: https://techvaio.com/fix-no-internet-secured-connection-error/
Thanks and regards,
somnath
Hello,
I have got this code from the support forum.
@media(min-width: 1024px) {
.both-sidebars .site-content {
display: flex;
}
.both-sidebars .site-content > div {
left: unset !important;
}
#left-sidebar {
order: -1;
}
.inside-left-sidebar, .inside-right-sidebar {
position: -webkit-sticky;
position: sticky;
top: 60px;
}
}
And it is working well.
Nice one! Glad you got it sorted. Thank you for letting us know. :)
Hi would be cool to have it as a customiser feature
I've raised a feature request on our GitHub page.
https://github.com/tomusborne/generatepress/issues/152
I'm not exactly if and/or when will Tom implement this. You can check our changelog page from time to time for any updates. https://generatepress.com/category/development/