Validate gravity form from unwanted text

Validate gravity form for unwanted words use the below code and put it at your functions.php function bld_strpos_arr($haystack, $needle) { if(!is_array($needle)) { $needle = array($needle); } foreach($needle as $what) { $pos = stripos($haystack, $what); if( $pos !== false) { return true; } } return false; } /* * Our bad words validation function */ add_filter(‘gform_validation’, …

Customize your upload button

Customize your upload button with a few codes here Here the html <div class=”fileUpload”> <input id=”uploadedimage” class=”uploadedimage” name=”profile_image” type=”file”> </div> Following by css .fileUpload { background-image: url(http://www.sgkidsco.com/wp-content/themes/zolix/img/upload-button.png) !important; height: 40px; background-repeat: no-repeat; color: rgba(255, 255, 255, 0); } input.uploadedimage { opacity:0; width:100%; height:40px; }   You can the preview at jsfiddle http://jsfiddle.net/shakalya/usrphx5y/