Tagged: placement, Search Bar, search field, social sharing icons
-
AuthorPosts
-
February 19, 2014 at 3:21 pm #226216
I would like to know if you can give us a code so that the Search icon is preceeded by the word search (or for the multilingual – recherche – in french) in Enfold.
Or, perhaps easier, if it is possible to change the appearance or function to that of how it appears in Choices theme. Also with the social media icons beside it, instead of above.
Thank you so much, this would be a great help.
February 20, 2014 at 6:21 am #226616Hey AssuranceOgilvy!
Please edit functions-enfold.php, find this code on line 69:
$items .= '<li id="menu-item-search" class="noMobile menu-item menu-item-search-dropdown"><a href="?s=" rel="nofollow" data-avia-search-tooltip="'.$form.'" '.av_icon_string('search').'></a></li>';
Replace it with:
$items .= '<li id="menu-item-search" class="noMobile menu-item menu-item-search-dropdown"><a href="?s=" rel="nofollow" data-avia-search-tooltip="'.$form.'" '.av_icon_string('search').'><span class="search-text">Search</span></a></li>';
Add this on Quick CSS:
.search-text { margin-left: 10px; font-size: 12px; }
Regards,
IsmaelMarch 3, 2014 at 10:00 pm #231861This reply has been marked as private.March 5, 2014 at 5:27 pm #232813Hi!
Can you post the link to your website so we can check what type of header you are using? You can also check it in Enfold theme options > Header tab
Regards,
YigitMarch 7, 2014 at 4:47 pm #233823This reply has been marked as private.March 8, 2014 at 1:19 am #234070This reply has been marked as private.March 8, 2014 at 9:38 pm #234243Hi!
Please replace the code that I gave you with this:
$items .= '<li id="menu-item-search" class="noMobile menu-item menu-item-search-dropdown"><a href="?s=" rel="nofollow" data-avia-search-tooltip="'.$form.'" '.av_icon_string('search').'><span class="search-text">'.__( 'Search', 'avia_framework' ).'</span></a></li>';
This will make the “Search” string translatable. If the translation is not automatic when you switch language, please use this plugin to translate the string: http://wordpress.org/plugins/codestyling-localization/
Please hire a freelance developer if you want to integrate the Choices’ or the Propulsion’s search form on Enfold.
You can set the facebook account on Enfold (En) and Enfold (Fr) separately. Switch between languages when you are on the wp dashboard.
Cheers!
IsmaelMarch 11, 2014 at 4:58 am #235178This reply has been marked as private. -
AuthorPosts
- The topic ‘Adding he word Search in front of the Search Icon or changing location’ is closed to new replies.