-
AuthorPosts
-
March 8, 2017 at 11:04 am #757689
Hi there,
for the arrow ICON to scroll from section to section you already posted this function to change the ICONadd_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
March 8, 2017 at 11:05 am #757691PS: your form filtered out my changed html code, this last blue line above does not make any sense
March 14, 2017 at 7:45 am #760489Hey!
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!
IsmaelMarch 14, 2017 at 11:00 am #760575Thank you very much Ismael !
for the code and the info pastebin.
Greetings, JochenMarch 15, 2017 at 6:23 am #761143Hi 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,
RikardMarch 20, 2017 at 10:02 am #763541one 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”;
}March 22, 2017 at 4:51 pm #764874Hi,
yes, check out this here: http://kriesi.at/documentation/enfold/adding-your-own-icon-fonts/
Best regards,
Andy -
AuthorPosts
- You must be logged in to reply to this topic.
