Tagged: search icon
Gday Enfold users
Does anyone know how to add the word ‘Search’ before the search icon (when used in the bottom menu bar)?
cheers
Darryl
Hey itchybrain!
Edit header.php, find this code:
echo "<div class='main_menu' data-selectname='".__('Select a page','avia_framework')."'>";
Below, add this code:
echo "<div class='search-text'>Search</div>";
Add this on your custom.css or Quick CSS:
.search-text {
position: absolute;
text-align: right;
padding-right: 30px;
}
Cheers!
Ismael
Gday Ismael.
Thanks for your idea for adding the search term. It did indeed work, though it would be better if the term was also acting as the link as well.
I’m wondering, could you please point out the file which has the actual icon in it? Perhaps I can just put the word in the anchor of the icon font character?
cheers
Darryl
Hello!
In WordPress theme directory please go to Enfold folder and open functions-enfold.php file and find following code in line 40
$items .= '<li id="menu-item-search" class="noMobile menu-item menu-item-search-dropdown">'.$avia_config['font_icons']['search'].'';
and change it to
$items .= '<li id="menu-item-search" class="noMobile menu-item menu-item-search-dropdown">Search '.$avia_config['font_icons']['search'].'';
Best regards,
Yigit
Excellent, works like a charm, thanks Yigit. Putting a span around the term has also helped me to target it with CSS separately to the icon itself.