ajax-loader.gif missing width and/or height attributes
-
Looking at the jquery-validation-for-contact-form-7/jquery-validation-for-contact-form-7.php, the code doesn’t have height and width set. The following below is the code snippet:
function jvcf7_validation_js(){ global $optionValues; echo '<script> jvcf7_loading_url= "'.plugins_url('contact-form-7/images/ajax-loader.gif').'"; jvcf7_invalid_field_design = "'.$optionValues["jvcf7_invalid_field_design"].'"; jvcf7_show_label_error = "'.$optionValues["jvcf7_show_label_error"].'"; </script>';I tried adding height and width attributes but it ends up breaking other scripts within my WordPress theme. My example is as shown below:
jvcf7_loading_url= "'.plugins_url('contact-form-7/images/ajax-loader.gif').'" width="16px" height="16px";If there is anyway to set the height and width of the image, that would help optimize my site. Thanks!
https://ww.wp.xz.cn/plugins/jquery-validation-for-contact-form-7/
The topic ‘ajax-loader.gif missing width and/or height attributes’ is closed to new replies.