Tagged: Scroll down icon
Hi!
I have updated the site in the private content to enfold 7.0 and our custom scroll down icon are not back to the default.
We have used this function to make it work on the site that are not updated to 7.0. The site are also in the private content.
Can you help me fix this?
Code
// Scroll down ikon skiftes
add_filter(‘avf_default_icons’,’avia_replace_standard_icon_scrolldown’, 10, 1);
function avia_replace_standard_icon_scrolldown($icons)
{
$icons[‘scrolldown’] = array( ‘font’ =>’flaticon_culina’, ‘icon’ => ‘uf106’);
return $icons;
}
Hey mvi,
I don’t see a difference for the scrolldown arrow between your two sites.
Try this filter instead:
add_filter('avf_default_icons','avia_replace_standard_icon_scrolldown', 10, 1);
function avia_replace_standard_icon_scrolldown($icons)
{
$icons['svg__scrolldown'] = array( 'font' =>'flaticon_culina', 'icon' => 'uf106');
return $icons;
}
Please ensure to copy the code from the forum and not an email notification so the symbols are not converted.
Best regards,
Mike
Hi Mike
I have add two images to show the difference because it is two different icons.
One of them are the default icon and the other one are a custom icon.
But the code you sent worked.
Can you add it somewhere on your documentation so if other need to replace the default icon in the future? :-)