• Resolved motk88

    (@motk88)


    I have a sticky navigation und when I click the search link it scrolls automatically back to the top of the page. Is there a way to disable this behaviour?

    Thanks in advance!

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Support Karan

    (@kjswp)

    Hi @motk88,

    I would like to inform you that the SearchWP modal plugin does not cause the page to scroll to the top when clicking the search link.

    Based on the issue you’ve described, it seems the SearchWP modal JS may not be functioning correctly on your site, which is likely why the modal popup isn’t displaying as expected.

    I recommend checking for any JavaScript errors on the page, as these could be causing the issue. Resolving any JS errors should restore the expected functionality of the SearchWP modal form.

    Thread Starter motk88

    (@motk88)

    Thanks for your answer. I have no JavaScript Errors on the page. I’ve also disabled the sticky navigation but the problem persists.

    Plugin Support Karan

    (@kjswp)

    @motk88 Can you provide me a link to your site? This way I can test the issue and find more details.

    Thread Starter motk88

    (@motk88)

    Plugin Support Karan

    (@kjswp)

    Thanks for sharing the link to your site.
    I tested the search modal functionality across different browsers, including Chrome, Firefox, and Safari, and it seems to be working fine on my end. Please see this screenshot.

    I suggest disabling any caching plugins and clearing your browser cache to see if that fixes the issue. If you need any additional information, please let me know.

    Thread Starter motk88

    (@motk88)

    So the page is not scrolling to the top when you click the search link? Because your screenshot does show the top of the page… However a screenshot obviously can’t show the behavior I described anyway.

    I’ve tested this also with different browsers and cleared caches and the problem persists… :/

    Plugin Support Karan

    (@kjswp)

    Hi @motk88,

    Thank you for the additional information.

    It seems I may have misunderstood your issue initially. After further investigation, I found that the scroll to top issue is being caused by a specific OceanWP JS file on your site. The modal uses an anchor tag, and the theme’s feature causes the page to scroll to the anchor when the menu item is clicked.

    It would be best to ask the theme’s support how to disable the scroll effect on the Modal menu item.

    Thread Starter motk88

    (@motk88)

    I’ve disabled the scrolling behaviour in the customzier of OceanWP. Thanks for your help! ??

Viewing 8 replies - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.