• Resolved CRMiller2014

    (@crmiller2014)


    Is it possible to remove the search icon from the menu, since I’m using a search widget in the sidebar? No need for both & I’d rather have the space for more menu items. Thanks.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Theme Author Tomas Mackevicius

    (@tomasm)

    In functions.php of a child theme look for:

    2.4 – Tip10 – Add Twenty Thirteen search form to WordPress nav menu, also see style.css

    And comment out or delete that function.

    Thread Starter CRMiller2014

    (@crmiller2014)

    Thanks! (again) ??

    Thread Starter CRMiller2014

    (@crmiller2014)

    I finally just tried to do this…zapped my whole site, had to go in through file manager & delete them and start over. ??

    Theme Author Tomas Mackevicius

    (@tomasm)

    I tested both regular and full width and the removal of function works as intended. If you do a change in functions.php and it gives you a whitescreen or errors, you do not delete whole theme, but go into your text editor, undo last change ,re-upload the file via ftp and bring the site back.

    These lines had to be deleted or commented out:

    function tinyframeworkchild_add_search_to_wp_menu ( $items, $args ) {
    	if( 'primary' === $args -> theme_location ) {
    	$items .= '<li class="menu-item menu-item-search">' . get_search_form(false) . '</li>';
    	}
    	return $items;
    }
    add_filter( 'wp_nav_menu_items','tinyframeworkchild_add_search_to_wp_menu',10,2 );
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Tiny Framework theme search in menu bar’ is closed to new replies.