Archived topic
sticky widget
7 replies · Started by tjs198 on June 16, 2017
is there a way to have a widget stick in a sidebar? creating a table of contents in the left sidebar and as the user scrolls down through the online course, I would like hte table of contents widget to stay shown in the left sidebar. is this possible?
thanks for reviewing
Hi there,
This should help: https://generatepress.com/forums/topic/sticky-sidebar/page/2/#post-299770
This is fantastic, many thanks for the link but is there a way of making it appear below the sticky header that is set to appear if the user scrolls down ?
An example is at :
https://www.wyscouts.org.uk/support/activities/activitypermits/
Hmm, that method doesn't give us a class to work with unfortunately.
Perhaps a plugin like this would work better?: https://en-ca.wordpress.org/plugins/sticky-menu-or-anything-on-scroll/
Let me know if you set it up and I'll look to see if there's a class we can use to offset the element.
Hi there,
I have installed the plugin but now drops over the footer and under the sticky bar too,
Any help would be really appreciated, just need it to stay over the sticky bar but above the footer,
Cheers
Steve
The instructions say you can choose a "push up element", which you can add .site-footer to. That should stop it from going on the footer.
As for the navigation, you can try this now:
.sidebar.element-is-sticky {
margin-top: 60px !important;
}
Many thanks for your help
You're welcome :)