Title: Tiny Framework theme search in menu bar
Last modified: August 24, 2016

---

# Tiny Framework theme search in menu bar

 *  Resolved [CRMiller2014](https://wordpress.org/support/users/crmiller2014/)
 * (@crmiller2014)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/tiny-framework-theme-search-in-menu-bar/)
 * 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](https://wordpress.org/support/users/tomasm/)
 * (@tomasm)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/tiny-framework-theme-search-in-menu-bar/#post-6072248)
 * 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](https://wordpress.org/support/users/crmiller2014/)
 * (@crmiller2014)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/tiny-framework-theme-search-in-menu-bar/#post-6072304)
 * Thanks! (again) 🙂
 *  Thread Starter [CRMiller2014](https://wordpress.org/support/users/crmiller2014/)
 * (@crmiller2014)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/tiny-framework-theme-search-in-menu-bar/#post-6072445)
 * 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](https://wordpress.org/support/users/tomasm/)
 * (@tomasm)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/tiny-framework-theme-search-in-menu-bar/#post-6072451)
 * 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.

 * ![](https://i0.wp.com/themes.svn.wordpress.org/tiny-framework/2.3.1/screenshot.
   png)
 * Tiny Framework
 * [Support Threads](https://wordpress.org/support/theme/tiny-framework/)
 * [Active Topics](https://wordpress.org/support/theme/tiny-framework/active/)
 * [Unresolved Topics](https://wordpress.org/support/theme/tiny-framework/unresolved/)
 * [Reviews](https://wordpress.org/support/theme/tiny-framework/reviews/)

 * 4 replies
 * 2 participants
 * Last reply from: [Tomas Mackevicius](https://wordpress.org/support/users/tomasm/)
 * Last activity: [11 years, 5 months ago](https://wordpress.org/support/topic/tiny-framework-theme-search-in-menu-bar/#post-6072451)
 * Status: resolved