- January 9, 2017 at 8:33 pm #11519
Hi there – I can’t figure out how to prevent the page from scrolling behind the results list when using the compact search layout. When you scroll through the results, once you reach the bottom of the results the page scrolls behind the results list and it moves. It snaps back quickly but I’d rather not have the results “box” or the page behind it move at all. Am I missing a setting somewhere? Any help you can offer would be greatly appreciated! Thanks in advance 🙂January 10, 2017 at 10:26 am #11529
I’m not sure if this is possible, the scrollbar script might be capable of it. Scroll propagation by definition is not cancellable programatically, there are tricks to get around it, but usually they get patched up on browser updates.
Anyways, I’ve looked up the script documentation, and there appears to be a way which should work on most browsers. Try putting this custom code to the bottom of the functions.php file in your active theme directory:
This may not work at all, but it’s worth a try. The scrollbar might be a bit different after this code, as it will fully re-create the scrollbar upon displaying the results. Let’s hope it works 🙂Best,
If you like my products, don't forget to rate them on codecanyon :)
You must be logged in to reply to this topic.