file upload limit code
-
Hi,
I’ve seen this section of code;
jQuery(function() {
jQuery(‘.wp-job-manager-file-upload[multiple]’).on(‘click’, function(e) {
if(jQuery(‘.job-manager-remove-uploaded-file’).length > 5) { alert(‘Max 6 images’); e.preventDefault() ;}
});
});here: https://github.com/Automattic/WP-Job-Manager/issues/516
and wondering where I put the code? would I do it in the stylesheets or functions.php of my child theme, or somewhere else?
The code is a temp fix to limit (i hope) the image upload for job manager.
Many thanks
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘file upload limit code’ is closed to new replies.