Title: remove margin from header
Last modified: August 31, 2016

---

# remove margin from header

 *  [roccom669](https://wordpress.org/support/users/roccom669/)
 * (@roccom669)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/remove-margin-from-header/)
 * i basically have 2 questions
    1. Im using twenty-sixteen default wordpress theme
   for my blog. I want to remove the black border and margin space in header. 2.
   Is it possible to add search to nav menu.
 * my site is [http://www.hashblogger.com/](http://www.hashblogger.com/)

Viewing 2 replies - 1 through 2 (of 2 total)

 *  [Michael](https://wordpress.org/support/users/alchymyth/)
 * (@alchymyth)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/remove-margin-from-header/#post-6946500)
 * 1. seems to be resolved (?) – I don’t see any black borders
 * 2. try to add a filter like this to functions.php of a child theme:
 *     ```
       add_filter( 'wp_nav_menu_items', 'add_search_box_to_menu', 10, 2);
       function add_search_box_to_menu( $items, $args ) {
           if( $args->theme_location == 'primary' )
               ob_start(); get_search_form(); $out = ob_get_clean(); return $items.'<li class="menu-item menu-search">'.$out.'</li>';
   
           return $items;
       ```
   
 *  Thread Starter [roccom669](https://wordpress.org/support/users/roccom669/)
 * (@roccom669)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/remove-margin-from-header/#post-6946516)
 * no. its not. i just changed the color of border to white. i basically want to
   remove the extra space on top as well. i mean the extra margin from top

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘remove margin from header’ is closed to new replies.

## Tags

 * [Twenty Sixteen](https://wordpress.org/support/topic-tag/twenty-sixteen/)

 * 2 replies
 * 2 participants
 * Last reply from: [roccom669](https://wordpress.org/support/users/roccom669/)
 * Last activity: [10 years, 3 months ago](https://wordpress.org/support/topic/remove-margin-from-header/#post-6946516)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
