- This topic has 2 replies, 2 voices, and was last updated 11 years, 3 months ago by .
- The topic ‘Sidebars that move independently?’ is closed to new replies.
These forums are for general discussion on WordPress and Genesis. Official support for StudioPress themes is offered exclusively at My StudioPress. Responses in this forum are not guaranteed. Please note that this forum will require a new username, separate from the one used for My.StudioPress.
I'd like to display a sidebar that moves independently of the main content area. Normally, when a reader scrolls up or down a sidebar, the main content area also scrolls. How can I accomplish this? Examples: qz.com and thenextweb.com.
This is going to require JS and some fancy CSS to make happen. The simple part is set your sidebars to position: fixed;
But if you notice, the thenextweb.com site fixes the sidebar position but it uses JS to let the header show, then the sidebar to slide up and get fixed in another position. There is probably some other magic happening that fits them to teh size of the screen too.
Thanks, Nick. This sounds like something beyond my skill level and will likely go on my to-do list for later. Appreciate the overview, though.
© 2024 WPEngine, Inc.