Quantcast
Channel: WordPress.org Forums » All Topics
Viewing all articles
Browse latest Browse all 59525

Scroll Condition – Current Position

$
0
0

Replies: 0

I’ve added JS to my footer after reading posts on here, and that works perfectly (scrolls a CPT down to a CSS # with an additional offset of 55px).

However, that is quite annoying when the user refreshes the page because Chrome usually returns to the same view, but with the jQuery in place, it moves away from that.

Is there a way to only execute the jQuery if the page is right at the top?


Viewing all articles
Browse latest Browse all 59525

Trending Articles