Home › Forums › Support › How To make a sticky sidebar? This topic has 8 replies, 2 voices, and was last updated 2 years, 5 months ago by Ying. Viewing 9 posts - 1 through 9 (of 9 total) Author Posts November 5, 2021 at 5:55 am #1992480 NeedForGaming I want to make a sticky sidebar both for home and single post. I used the below CSS code it didn’t work for me. @media (min-width: 769px) { .inside-left-sidebar { position: sticky; top: 100px; } } November 5, 2021 at 10:07 am #1992962 YingStaff Customer Support Hi there, Any chance you can link us to the site in question? You can use the private information field. https://docs.generatepress.com/article/using-the-premium-support-forum/#private-information Let me know π November 5, 2021 at 10:14 am #1992966 NeedForGaming This is not my answer, please tell me how to do that. November 5, 2021 at 10:56 am #1993010 YingStaff Customer Support If that CSS doesn’t work, I have to see the live site code to adjust the CSS. I can’t write CSS with imagination unfortunately. You can put your site link in to the area where the red arrow is pointing to: https://www.screencast.com/t/ns5qMczbx November 5, 2021 at 7:44 pm #1993371 NeedForGaming Ok November 5, 2021 at 7:46 pm #1993372 NeedForGaming Alright! November 5, 2021 at 8:38 pm #1993397 YingStaff Customer Support 1. the sidebar on your home page is right sidebar, not left sidebar, so the CSS would be: @media (min-width: 769px) { .inside-right-sidebar { position: sticky; top: 100px; } } 2. You have this CSS, if the right sidebar’s ancestor element has overflowset to hidden, stickyCSS won’t work. You’ll need to remove this CSS: html, body { overflow-x: hidden; } Let me know if you need further assistance π November 5, 2021 at 9:18 pm #1993413 NeedForGaming Thanks, it works. November 6, 2021 at 10:49 am #1994119 YingStaff Customer Support You are welcome π Author Posts Viewing 9 posts - 1 through 9 (of 9 total) You must be logged in to reply to this topic. Log In Username: Password: Keep me signed in Log In