• 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 https://www.hashblogger.com/

Viewing 2 replies - 1 through 2 (of 2 total)
  • 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

    (@roccom669)

    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.