Validating admin bar
-
Hey guys
I’ve been trying to validate my site but I’m getting the error:
document type does not allow element “input” here; missing one of “p”, “h1”, “h2”, “h3”, “h4”, “h5”, “h6”, “div”, “pre”, “address”, “fieldset”, “ins”, “del” start-tag
For the two input lines in this code from the class-wp-admin-bar.php file:
<div id="adminbarsearch-wrap"> <form action="<?php echo home_url(); ?>" method="get" id="adminbarsearch"> <input class="adminbar-input" name="s" id="adminbar-search" type="text" value="" maxlength="150" /> <input type="submit" class="adminbar-button" value="<?php _e('Search'); ?>"/> </form> </div>What should I do to fix this? (I’m not good with code so that’s why I’ve stayed away from messing with it, especially since it’s in the wordpress files, not like a theme or anything.
Thank you
The topic ‘Validating admin bar’ is closed to new replies.