Tagged: 

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #163908

    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

    #164038

    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

    #164963

    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

    #165202

    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

    #165247

    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.

    #165364

    Hey!

    You are welcome glad we could help :)

    Cheers!
    Yigit

Viewing 6 posts - 1 through 6 (of 6 total)
  • The topic ‘Add the word 'Search' before the search icon’ is closed to new replies.