Home › Forums › Front-end Issues › Refresh custom gallery image without page reload using ajax › Reply To: Refresh custom gallery image without page reload using ajax
Hi @ddogdani,
I believe you can use jQuery’s preventDefault() function to disable the redirection when you are clicking a link. This page should give you more idea about it: https://api.jquery.com/event.preventdefault/.
Also, could you please put your code in the “code” block so it won’t break thread page?
Thanks 🙂
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.