Home › Forums › Add-ons › Gallery Field › Disable user ability to edit photo on gallery upload? › Reply To: Disable user ability to edit photo on gallery upload?
If you’re handling uploads outside the WordPress media library, you can try using CSS or JavaScript to disable the edit functionality. A simple CSS trick would be:
.your-thumbnail-class { pointer-events: none; }
This will prevent clicks on the thumbnail. If it’s handled via JavaScript, you might need to override the click event. Let me know if you need help tweaking it!
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.