Minumum Dimensions without Cropper

Want to set a minimum with without allowing users to crop? This lil hack gets the job done by simply hiding the “edit” button which would open the cropper.

Instructions

  1. Include this custom CSS wherever your theme supports it.
  2. Add the “gpfup-disable-cropper” class to the target field’s CSS Class Name setting.

Code

Filename: gpfup-min-dimensions-no-cropper.css

/**
 * Gravity Perks // File Upload Pro // Minumum Dimensions without Cropper
 * https://gravitywiz.com/documentation/gravity-forms-file-upload-pro/
 *
 * Want to set a minimum with without allowing users to crop? This lil hack gets the job done by
 * simply hiding the "edit" button which would open the cropper.
 *
 * Instructions:
 *
 * 1. Include this custom CSS wherever your theme supports it.
 * 2. Add the "gpfup-disable-cropper" class to the target field's CSS Class Name setting.
 */
.gpfup-disable-cropper .gpfup__file:hover .gpfup__edit,
.gpfup-disable-cropper .gpfup__file:focus-within .gpfup__edit {
	display: none;
}

Leave a Reply

Your email address will not be published. Required fields are marked *

  • Trouble installing this snippet? See our troubleshooting tips.
  • Need to include code? Create a gist and link to it in your comment.
  • Reporting a bug? Provide a URL where this issue can be recreated.

By commenting, I understand that I may receive emails related to Gravity Wiz and can unsubscribe at any time.