Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #634807

    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);

    #635005

    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

    #635310

    Hi

    Thanks Vinjay, that did it.

Viewing 3 posts - 1 through 3 (of 3 total)
  • The topic ‘fatal error in trying to update function.php with social icon’ is closed to new replies.