Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #377779

    Hey

    I’ve added custom Fontello package and I would like to use one of the icons as the search submit icon.
    How can I change that? Same thing I want to do with the “Go to top” button.

    Thanks!

    #377797

    Hi website2create!

    Please see – http://kriesi.at/documentation/enfold/change-icon-used-for-standard-theme-elements/

    Best regards,
    Yigit

    #377940

    Thanks, it did work for the search icon.
    But I tired to replace the Go to top icon but it doesn’t replace it.

    // change default icons
    add_filter('avf_default_icons','avia_replace_standard_icon', 10, 1);
    
    function avia_replace_standard_icon($icons)
    {
    $icons['search']	 = array( 'font' =>'myicons', 'icon' => 'ue803'); // works
    $icons['up-open']	 = array( 'font' =>'myicons', 'icon' => 'ue801'); // doesn't work
    return $icons;
    }

    Any idea?

    Thank you

    #378339

    Hey!

    Please try following

    // change default icons
    add_filter('avf_default_icons','avia_replace_standard_icon', 10, 1);
    
    function avia_replace_standard_icon($icons)
    {
    $icons['search']	 = array( 'font' =>'myicons', 'icon' => 'ue803'); // works
    $icons['scrolltop']	 = array( 'font' =>'myicons', 'icon' => 'ue801'); // should work now 
    return $icons;
    }

    Best regards,
    Yigit

    #378676

    Thanks it works.
    I found that all the strings appear in functions.php

Viewing 5 posts - 1 through 5 (of 5 total)
  • The topic ‘Change search submit icon’ is closed to new replies.