-
AuthorPosts
-
December 23, 2018 at 1:41 pm #1048794
I have searched the forums but can’t find a solution; all solutions seem to lean towards going into the settings and checking the box to enable the search, but it is enabled. I tried unchecking then saving again, then checking it again and then re-saving, but nothing.
The search icon is not being display in the main header menu (also not near or in the hamburger menu on mobile).I have changed .htaccess files but it is still not working.
-
This topic was modified 7 years, 2 months ago by
blinde1980.
December 23, 2018 at 9:34 pm #1048900I fixed it myselft, by changing the funtions-enfold.php. Due to the fact that we are using Zen Menu Logic the theme_location is not set to “avia” but the function is looking for this to add the search icon. So I have added this.
function avia_append_search_nav ( $items, $args )
{
if(avia_get_option(‘header_searchicon’,’header_searchicon’) != “header_searchicon”) return $items;
if(avia_get_option(‘header_position’, ‘header_top’) != “header_top”) return $items;if ((is_object($args) && $args->theme_location == ” or $args->theme_location == ‘avia’ ) || (is_string($args) && $args = “fallback_menu”))
{
global $avia_config;
ob_start();
get_search_form();
$form = htmlspecialchars(ob_get_clean()) ;$items .= ‘<li id=”menu-item-search” class=”noMobile menu-item menu-item-search-dropdown menu-item-avia-special”>
<span class=”avia_hidden_link_text”>’.__(‘Search’,’avia_framework’).'</span>
‘;
}
return $items;December 27, 2018 at 2:28 am #1049128 -
This topic was modified 7 years, 2 months ago by
-
AuthorPosts
- You must be logged in to reply to this topic.
