Hi,
I used to use a code found on your support to change my shopping cart icon in WooCommerce:
add_filter('avf_default_icons','avia_add_custom_icon', 10, 1);
function avia_add_custom_icon($icons)
{
$icons['cart'] = array( 'font' =>'awesome-font', 'icon' => 'uf291');
return $icons;
}
I recently installed a new plugin on my installation and I would need to change my cart icon to a new one, used by the plugin.
I found font family name and icon code in the plugin folder and I’m trying to apply it by this nex code:
$icons['cart'] = array( 'font' =>'Woo-Side-Cart', 'icon' => '\e910');
…but it doesn’t work.
Could you please tell me what I am doing wrong?
If needed, you can find a link and credentials to my website in private content.
Thanks a lot!
Hi fcp,
I have checked on your site and noticed that the font does not exist or atleast not registered.
You’ll know if the font is recognized when you create an icon element and you’ll see it show up there.
Best regards,
Nikko
Hi Nikko,
Thanks for your reply.
I’m sorry I feel stupid :-(
I thought it was enough that the font was in the plugin folder.
I now installed the font and everything is ok.
Sorry for this and thanks a lot for your help! ;-)
Best regards
Hi fcp,
No worries, cheer up because you’re doing great :) we all make mistakes, and sometimes we just missed it for some reason.
We’re just glad that we could help you :)
Thanks as well for using Enfold and have a great day!
Best regards,
Nikko