Support

Account

Home Forums Add-ons Gallery Field Disable user ability to edit photo on gallery upload?

Solving

Disable user ability to edit photo on gallery upload?

  • I’ve set my gallery field to NOT use the wordpress media library for upload, so it is a simple file upload. However, once the user selects a photo, the thumbnail appears and they can click on it to edit the photo name, alt tag, description, etc.

    How can I disable the ability for a user to edit these fields? When they click the thumbnail, I want nothing to happen.

    Thanks in advance.

  • What do you mean by this

    I’ve set my gallery field to NOT use the wordpress media library for upload

    Do you mean Library - Uploaded to Post

    All images added to a gallery are uploaded to the media library. This just limits the selection to images that have been uploaded while editing a post.

    Anyway, no, it is not possible to disable this without altering ACF JavaScriot code

  • I had a lot of headaches because of editing photos in the way I like…

  • 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!

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.