WordPress Ajax Reload problem

Hello all and thanks for helping.

On my website I have a plugin that runs a custom php application. This works fine, except for one thing. When I click on the button, it reloads the page and goes to the top of the page.
I’ve searched online ofcourse and found a couple of things relating to Ajax within wp forms of gravity forms, but I’ve no idea how to fix that for my specific situation, the php code is run in XYZ PHP CODE Snippets.

I’m hoping at least one of you have experienced a similar problen and remembers how you’ve fixed it.

  1. What button are you clicking on? There’s a lot of missing context here to understand, before we can give a answer

  2. u/Valoneria Thank you for responding


    This is the website. On the homepage and on [https://rateringisolaties.eu/prijs-isolatie/](https://rateringisolaties.eu/prijs-isolatie/)

    I have a custom code showing a calculator for the visitor to calculate cost. This works just as it should, but when ever you press the button to do the calculating, it reloads the page, and goes to top of page. The calculator still does its thing though.


This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer