Title: Validating admin bar
Last modified: August 19, 2016

---

# Validating admin bar

 *  [Bandonn](https://wordpress.org/support/users/bandonn/)
 * (@bandonn)
 * [15 years, 1 month ago](https://wordpress.org/support/topic/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.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 0 replies
 * 1 participant
 * Last reply from: [Bandonn](https://wordpress.org/support/users/bandonn/)
 * Last activity: [15 years, 1 month ago](https://wordpress.org/support/topic/validating-admin-bar/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
