Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #674913

    I was adding the add a widget area to the header in the functions.php file:

    add_action( ‘ava_main_header’, ‘enfold_customization_header_widget_area’ );
    function enfold_customization_header_widget_area() {
    dynamic_sidebar( ‘header’ );
    }

    And when I tried to save I got the following message:

    Fatal error: Cannot redeclare enfold_customization_header_widget_area() (previously declared in /home/bwmarket/public_html/testing/wp-content/themes/enfold/functions.php:541) in /home/bwmarket/public_html/testing/wp-content/themes/enfold/functions.php on line 555

    Seems now that my entire wordpress site is not working. Please help – not sure what I did!! It could be that it conflicted with soem of the previous modifications that I did from previous posts. Cannot even get in to the wordpress admin page.

    #674997

    Hey tylerschwab,

    Login to FTP or Control panel file manager and go to the functions.php file in wp-content\themes\enfold-child\functions.php if you are not using a child theme it will be in “enfold” folder.

    Remove the code you added to the functions file and re-upload it. (Make sure you backup this file before re-uploading it).

    The site should work fine now. Let us know if you have any questions.

    Best regards,
    Vinay

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.