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
PS: your form filtered out my changed html code, this last blue line above does not make any sense
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
Thank you very much Ismael !
for the code and the info pastebin.
Greetings, Jochen
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
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”;
}
Hi,
yes, check out this here: http://kriesi.at/documentation/enfold/adding-your-own-icon-fonts/
Best regards,
Andy