The search icon appears in the top right corner of my home page for desktop and tablet size displays/devices, but this disappears on the smartphone sized devices. Is there a way to have this appear on the smartphones?
I was trying to search my blog on my iPhone today for an article and wasn’t able to find the search box anywhere.
Hi databuzz!
Please add following code to Functions.php file in Appearance > Editor
add_shortcode('avia_search', 'get_search_form');
function add_custom_href_remove(){
?>
<script>
jQuery(window).load(function(){
jQuery('.only-mo a').removeAttr('href');
});
</script>
<?php
}
add_action('wp_footer', 'add_custom_href_remove');
then go to Appearance > Menus and add a new Custom Link with # for URL and [avia_search] for navigation label. And then refer to this post – http://kriesi.at/documentation/enfold/hide-menu-itemselements-on-mobile/ and hide that menu item on desktop
Best regards,
Yigit