-
AuthorPosts
-
January 26th, 2017 at 23:53 #42241
I ran into an issue where I had the perfect storm of sidebar height, content height and window height that resulted in the scroll listener not entering
if ( mainHeight <= sidebarHeight)
,if ( sidebarHeight + adminbarOffset > windowHeight)
, orelse if ( ! top )
in frontend.js. This caused the sidebar to beposition: fixed
on body load, switch toposition: absolute
when you scroll to the bottom (because it does meet the criteriaif ( $sidebar.offset().top + sidebarHeight + adminbarOffset > $footer.offset().top + 40)
). After that, it never switches back tofixed
becausetop
is stilltrue
from the initial declaration.To fix this, I added
top = false;
inside of theif ( $sidebar.offset().top + sidebarHeight + adminbarOffset > $footer.offset().top + 40)
statement. This letsif ( ! top )
trigger when scrolling up and sets the sidebar back tofixed
. Hope this helps anyone with the same issue, and might be helpful to include in an update if anyone from Cryout reads this.Website: zack.reithmeyer.com
February 5th, 2017 at 17:45 #42497ZedCryout Creations mastermindWe’ll look into this.
If you like our creations, help us share by rating them on WordPress.org.
Please check the available documentation and search the forums before starting a topic.February 20th, 2017 at 14:18 #42826harmanPower User[This is a re-post of a reply that I seem to have deleted myself. Sorry about that!]
I’m experiencing the same issue, but it seems to occur mainly when there are widgets in the Footer area.
I’m still in the early stages of designing my new test site, and I do want to get this resolved before I make it publicly visible. I really love the look of the Verbosa theme, but this behavior makes the theme unusable. As sidebar widgets do not show in mobile view (yet), I have to use footer widgets. Also, I like the look of having a “bar” across the desktop screen at the bottom of the site, for links like About, Contact etc.
Coding is not something I’m very comfortable with, so I’m not sure how to apply thunderblaster’s tip on my site. I’m using a child theme (the NoLink child theme provided by Cryout). Where would I place a file to fix this issue, and what would it need to contain?
There is another issue that I’m experiencing, but I’m not sure if it’s related to this. When I scroll all the way down on desktop, the footer section “pushes up” the sidebar — but not entirely. The bottom bit of the sidebar stay visible “on top of” the footer. Do you have any ideas on how to fix this?
Thanks a lot!
February 26th, 2017 at 19:37 #42978ZedCryout Creations mastermind@Harman, both of the issues will be fixed in the upcoming update.
If you like our creations, help us share by rating them on WordPress.org.
Please check the available documentation and search the forums before starting a topic.February 26th, 2017 at 20:36 #42984harmanPower UserThank you, Zed!
-
AuthorPosts
The topic ‘Sidebar gets stuck at bottom of page’ is closed to new replies.