Forums › Forums › Search & Filter Pro › anchor tags and jquery scrollTop stopped working
- This topic has 7 replies, 2 voices, and was last updated 3 years, 12 months ago by Trevor.
-
Anonymous(Private) February 4, 2021 at 6:24 pm #275332
Good Day.
i’m finding this issue with my site after i upgraded my plugin, where i have anchor tag set up with jquery function scrollTop on a couple of pages on my site. This function is no longer running correctly and just pushes the page to the top of the browser. This was working correctly before.I deactivated plugins to see were the problem was coming from. When I deactivated search & filter, the problem/issue stopped.
I have running:
Search & Filter Pro Version: 2.5.4
WP Version: 5.6.1is there something I can do to get this back to normal? is this a known bug or am I just special?
Appreciate your help.
KenTrevor(Private) February 5, 2021 at 8:49 am #275347Hi Ken
Before I reply, can I ask if you saw that we have a new support ticket system, which you would find here:
https://searchandfilter.com/account/support/
I was wondering if you tried that, and whether you had any difficulty with it?
These support forums will be closing to new tickets on the 8th February 2021 (that’s after this weekend) – existing tickets will be closed after a month.
Did you also upgrade WordPress around the same time? I ask because WordPress (and therefore our plugin) now uses jQuery 3.5.1, whereas before it was using jQuery 1.12.4
The two versions of jQuery are not always compatible, and so code that worked with one may not work with the other.
Anonymous(Private) February 5, 2021 at 2:57 pm #275371Hi Trevor,
Sorry I honestly cant remember where I filled out this ticket.
We did update WP at some point, it automatically does it for out site.
It is running jquery 3.5.1
I’ll look into updating the jquery code and see if that works.
As always thanks for the helpAnonymous(Private) February 5, 2021 at 6:53 pm #275422Hi Trevor
I looked into this, and all my other jquery code is working, it seems to be just the
$(‘html, body’).animate({
scrollTop:
function that is wonky. It’s not on the page with the Search& Filter form, but through out the site. any where I have an anchor tag that links to another section on that page.
I’m stumped, and cant figure another way to scroll to the link.any help will be appreciated
if you need access to the site I can give you log in rights.
let me know.
thanks,
Ken -
AuthorPosts