Hi,
I tried using this code to use a custom image for a social icon (below) and got the following:
Fatal error: Cannot redeclare avia_add_custom_social_icon() (previously declared in /home/marshallcrossman/public_html/wp-content/themes/enfold/functions.php:524) in /home/marshallcrossman/public_html/wp-content/themes/enfold/functions.php on line 533
Can you assist?
Thanks
function avia_add_custom_social_icon($icons) {
$icons[‘Kriesi’] = ‘kriesi’;
return $icons;
}
add_filter(‘avf_social_icons_options’,’avia_add_custom_social_icon’, 10, 1);
Hey Jason,
Do not worry the site can be brought back to how it was earlier.
All you need to do is access the site FTP and download the functions.php and remove the last block of code that was added and re-upload it to the same location.
If you have any issues please post us your FTP info in private.
Best regards,
Vinay
Hi
Thanks Vinjay, that did it.