Forums › Forums › Search & Filter Pro › Scroll to results container from external link
Tagged: ajax
- This topic has 6 replies, 2 voices, and was last updated 5 years, 1 month ago by Trevor.
-
Anonymous(Private) September 26, 2019 at 5:43 pm #222066
I am using a custom query to display results on a specific page, and I’ve set the ajax to scroll to my results container on “All”. This works when filtering on the results page. But I also have the filters on an external page. When I click them, they correctly take me to the results page with the filtered results, but it loads at the top of the page. Can I make it scroll to the results container from an external link?
Thanks!
Trevor(Private) September 26, 2019 at 6:02 pm #222081If the results have a CSS ID, then you can add an anchor to the URL to that ID name.
This answer:
https://www.screencast.com/t/I3HJYd8r
From this page:
https://stackoverflow.com/questions/19158136/php-how-to-link-a-url-with-id-targeting-a-html-section
-
AuthorPosts