$.dcf = function() { $('.form-type-file, .form-managed-file').dcfFile(); => added , .form-managed-file aansluitend: $.fn.dcfFile = function() { var $input = $('input:first', this); ==> added :first