Home › Forums › Product Support Forums › Ajax Search Pro for WordPress Support › Scrolling to results
This topic contains 3 replies, has 2 voices, and was last updated by Ernest Marcinko 4 years, 3 months ago.
- AuthorPosts
- December 6, 2018 at 11:08 pm #20314
My search results are not right under the search bar but a little below. I would like to auto scroll to the results when a search is initiated by the user but on pages where I have auto-populate on I do not want the auto scroll to move the page. Is this possible?
December 7, 2018 at 9:45 am #20315Hi!
I think so, as there is an auto-scroll feature, that you can enable on the back-end here: https://i.imgur.com/RsezsQR.png
Best,
You can enable this on the search instances where you need the auto-scroll, and leave the ones with the auto populate.
Ernest Marcinko
If you like my products, don't forget to rate them on codecanyon :)
December 10, 2018 at 6:10 pm #20341So I am talking about the same search instance.
I would like to use auto scroll when the user does a search but on a separate page (using same search instance) when I am auto populating I do not want it to use auto scroll.
In my theme it has been coded that if the page is associated to a category then it gets auto-populated with posts of that category. Maybe you have a snippet that can turn off the auto scroll for these pages?
The URL given has the search bar without auto populate. If you add /projets/ on the URL you get the same search instance but with auto populate.
-
This reply was modified 4 years, 3 months ago by
May.
December 11, 2018 at 10:12 am #20343Hi!
It might be actually possible, I am not sure, it very highly depends on the exact implementation. I have constructed a custom code, that may do the trick. Change the $taxonomy and the $category (either category ID or category slug) variable accordingly. When the post is in the given category, the auto scroll argument is disabled:
Best,
Ernest Marcinko
If you like my products, don't forget to rate them on codecanyon :)
-
This reply was modified 4 years, 3 months ago by
- AuthorPosts
You must be logged in to reply to this topic.