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

    Hi everyone !
    I’m working on a new website and I can’t find how to change the search icon by a simple text.
    I want to replace the search icon by the text Recherche and in english it will be Search (the website will be in 2 langages).
    And I also would like to delete “recherche” in the back of the form :)

    Do you know how I can do that ?

    Thank you very much for your help !
    Regards,
    Thibault

    #695549

    Hi!

    Please add following code to Functions.php file in Appearance > Editor

    add_filter('avf_frontend_search_form_param','new_search_placeholder');
    function new_search_placeholder( $array ){
         $array['placeholder'] = __('','avia_framework');
         return $array;
    }

    then go to enfold/searchform.php file and find

    
    		<input type="submit" value="<?php echo $icon; ?>" id="searchsubmit" class="button <?php echo $class; ?>" />
    

    and change it to

    
    		<input type="submit" value="Recherche" id="searchsubmit" class="button <?php echo $class; ?>" />

    Best regards,
    Yigit

    #695559

    Thank you very much for your quick answer !
    It works pretty well :)

    I’ve just another question, does the value “recherche” will be easilly translatable ?

    Thank you for helping !

    #695567

    Hi!

    No, please change the following line

    <input type="submit" value="<?php echo $icon; ?>" id="searchsubmit" class="button <?php echo $class; ?>" />

    to following instead

    <input type="submit" value="<?php echo __('Search','avia_framework'); ?>" id="searchsubmit" class="button <?php echo $class; ?>" />

    then translate the string as needed using this plugin – https://wordpress.org/plugins/loco-translate/ or edit language files in enfold/lang folder using this free software – https://poedit.net/.

    Cheers!
    Yigit

    #695573

    Thank you Yigit ! :)

    Regards,
    Thibault

    #695575

    Hey!

    You are welcome!
    For your information, you can take a look at Enfold documentation here – http://kriesi.at/documentation/enfold/
    And if there are features that you wish Enfold had, you can request them and vote the requested ones here – https://kriesi.at/support/enfold-feature-requests/
    For any other questions or issues, feel free to post them here on the forum and we will gladly try to help you :)

    Regards,
    Yigit

Viewing 6 posts - 1 through 6 (of 6 total)
  • The topic ‘Replace entypo icon by text’ is closed to new replies.