Thursday, 22 May 2014

wordpress-remove search bar from menu in twentyfourteen theme

To remove search icon from menu, do next thing:

1. open header.php

    #vi wordpress_home/wp-content/themes/twentyfourteen/header.php

2.remove following lines

<div class="search-toggle">
                                <a href="#search-container" class="screen-reader-text"><?php _e( 'Search', 'twentyfourteen' ); ?></a>

3. save file

That is it!
I suppose you can do same thing on some other theme!

No comments: