Add search icon to menu
Since I'm not utilizing the action bar, I'd like to add the search icon (and capability) as the last item in my menu. How can I accomplish this? I'm comfortable editing the header-top-area.php file, I've attempted to add the following code within the menu_wrapper div, but no luck in getting it to appear:
// Search Icon
if( $header_search == 'input' ){
$translate['search-placeholder'] = mfn_opts_get('translate') ? mfn_opts_get('translate-search-placeholder','Enter your search') : __('Enter your search','betheme');
echo '<a id="search_button" class="has-input">';
echo '<form method="get" id="searchform" action="'. esc_url( home_url( '/' ) ) .'">';
echo '<i class="icon-search"></i>';
echo '<input type="text" class="field" name="s" id="s" placeholder="'. $translate['search-placeholder'] .'" />';
echo '<input type="submit" class="submit" value="" style="display:none;" />';
echo '</form>';
echo '</a>';
} elseif( $header_search ){
echo '<a id="search_button" href="#"><i class="icon-search"></i></a>';
}
Comments
what you ask for, requires files customization what in reference to Item Support Policy is not allowed. So if you want to modify files and don't know how, you should contact with your web developer.
Thanks for understanding!