Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #757689

    Hi there,
    for the arrow ICON to scroll from section to section you already posted this function to change the ICON

    add_filter(‘avf_default_icons’,’avia_replace_standard_icon_scrolldown’, 10, 1);
    function avia_replace_standard_icon_scrolldown($icons)
    {
    $icons[‘scrolldown’] = array( ‘font’ =>’flaticon’, ‘icon’ => ‘uf159’);
    return $icons;
    }

    Is it possible to to this with the ICON of the scroll-top-link too?

    Something like
    add_filter(‘avf_default_icons’,’avia_replace_standard_icon_scrollup’, 10, 1);
    function avia_replace_standard_icon_scrollup($icons)
    {
    $icons[‘scrollup’] = array( ‘font’ =>’flaticon’, ‘icon’ => ‘uf105’);
    return $icons;
    }

    Or is this handled different and I have to change it in the source code? E.G. like this
    <span class=”avia_hidden_link_text”>Nach oben scrollen</span>

    Regards

    #757691

    PS: your form filtered out my changed html code, this last blue line above does not make any sense

    #760489

    Hey!

    Thank you for using Enfold.

    Do you want to change the icon of the scroll-to-top link? If you do, please add this in the functions.php file:

    add_filter('avf_default_icons', 'avf_change_default_icons', 10, 2);
    function avf_change_default_icons($icons) {
    	$icons['scrolltop'] = array( 'font' =>'entypo-fontello', 'icon' => 'ue876');
    	return $icons;
    }

    Adjust the font and icon value.

    NOTE: Please use pastebin.com for posting codes.

    Cheers!
    Ismael

    #760575

    Thank you very much Ismael !
    for the code and the info pastebin.
    Greetings, Jochen

    #761143

    Hi Jochen,

    Glad we could help :-)

    Please let us know if you should need any further help on the topic or if we can close it.

    Best regards,
    Rikard

    #763541

    one more question concerning icons:

    Is there a way to include e.g. Flaticon Icons via CSS like possible with unicode icons?
    For example:

    .class:after {
    content: “\2194”;
    }

    #764874

    Hi,

    yes, check out this here: http://kriesi.at/documentation/enfold/adding-your-own-icon-fonts/

    Best regards,
    Andy

Viewing 7 posts - 1 through 7 (of 7 total)
  • You must be logged in to reply to this topic.