- This topic has 12 replies, 3 voices, and was last updated 5 years, 2 months ago by
Adrien.
-
AuthorPosts
-
December 3, 2019 at 6:04 am #1091527
Suraj Katwal
I have found something like this code for Genesis Theme to make last widget sticky.
/* Last widget Sticky*/ @media only screen and (min-width: 1024px) { .content-sidebar-wrap { display: -webkit-box; display: -ms-flexbox; display: flex; -webkit-box-pack: justify; -ms-flex-pack: justify; justify-content: space-between; } .sidebar-primary .widget:last-child { position: -webkit-sticky; position: sticky; top: 60px; } .admin-bar .sidebar-primary .widget:last-child { top: 72px; } }Is there any way like this to make last widget sticky in GP
Thanks.December 3, 2019 at 6:21 am #1091561David
StaffCustomer SupportHi there,
can you share a link to your site so i can take a look at the CSS required?
December 3, 2019 at 6:27 am #1091568Suraj Katwal
Currently, I am developing my site in offline mode. Thank you.
December 3, 2019 at 6:34 am #1091588David
StaffCustomer SupportTry this CSS it applies to the right side bar:
@media (min-width: 769px) { .site-content { display: flex; } .inside-right-sidebar { height: 100%; } .inside-right-sidebar aside:last-child { position: -webkit-sticky; position: sticky; top: 80px; /* Adjust to suit position */ } }December 3, 2019 at 6:38 am #1091592Suraj Katwal
Thank You. It is working.
December 3, 2019 at 7:10 am #1091782David
StaffCustomer SupportGlad to be of help.
July 17, 2020 at 12:38 am #1366381Marcel
The only problem is the widget will overflow the footer. How to solve this?
Screen recording here.July 17, 2020 at 2:32 am #1366482David
StaffCustomer SupportTry applying some
margin-bottomto the.inside-right-sidebar aside:last-childCSS.
If still an issue – start a new topic where you can share you site and we will take a look.July 17, 2020 at 2:42 am #1366494Marcel
For the moment I found another solution : I made the widget background transparent. It’s a trick but it works. Thank you.
July 18, 2020 at 2:50 am #1367497David
StaffCustomer SupportAah – thats a good idea. Glad to hear you found a solution
January 28, 2021 at 7:42 am #1637151Adrien
Fantastic trick!
How can I make the two last widgets sticky?
Thanks!
January 28, 2021 at 8:06 am #1637184David
StaffCustomer SupportHi there,
can you raise a new topic and share a link to your site, and ill see if we can provide the right CSS
January 29, 2021 at 3:34 am #1637957Adrien
All right thank you very much David.
-
AuthorPosts
- You must be logged in to reply to this topic.