• Resolved hellomomusic

    (@hellomomusic)


    Hi,

    I am customizing a free theme locally, so I can’t provide the link. I added a few footers to the theme and got it just how I wanted when I decided, I needed one more. I went into the function.php to start with registering the additional footer. I entered the code and updated, then ERROR. The thing is I can’t find the error.

    Error message reads as follows
    Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ‘)’ in /Applications/AMPPS/www/wp/wp-content/themes/arcade-basic/functions.php on line 249

    The section of the code I believe it is referring to is

    ) );
    register_sidebar( array(

    'name' => 'Footer Sidebar 1',

    'id' => 'footer-sidebar-1',

    'description' => 'Appears in the footer area',

    'before_widget' => '<aside id="%1$s" class="widget %2$s">',

    'after_widget' => '</aside>',

    'before_title' => '<h3 class="widget-title">',

    'after_title' => '</h3>',

    ) );

    register_sidebar( array(

    'name' => 'Footer Sidebar 2',

    'id' => 'footer-sidebar-2',

    'description' => 'Appears in the footer area',

    'before_widget' => '<aside id="%1$s" class="widget %2$s">',

    'after_widget' => '</aside>',

    'before_title' => '<h3 class="widget-title">',

    'after_title' => '</h3>',

    ) );

    register_sidebar( array(

    'name' => 'Footer Sidebar 3',

    'id' => 'footer-sidebar-3',

    'description' => 'Appears in the footer area',

    'before_widget' => '<aside id="%1$s" class="widget %2$s">',

    'after_widget' => '</aside>',

    'before_title' => '<h3 class="widget-title">',

    'after_title' => '</h3>',

    ) );
    register_sidebar( array(

    'name' => 'Footer Sidebar 4',

    'id' => 'footer-sidebar-4',

    'description' => 'Appears in the footer area',

    'before_widget' => '<aside id="%1$s" class="widget %2$s">',

    'after_widget' => '</aside>',

    'before_title' => '<h3 class="widget-title">',

    'after_title' => '</h3>',
    ) );
    }

    (Yes, even as a newbie, I know I should have used a child theme or edited elsewhere, but I didn’t. Got super caught up and didn’t even think about it. )

    Any help, preferably sooner than later, would be appreciated! Not enough info? Please let me know and I will provide more.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Moderator t-p

    (@t-p)

    – First off, consider creating a child theme to save your customizations in the future.

    – try uploading a fresh, unedited copy of your active theme’s functions.php file. See if that resolves the issue.

    Thread Starter hellomomusic

    (@hellomomusic)

    I know I should have created a child theme, but as they say, shoulda coulda woulda. Learned my lesson, though!

    I made copies of relevant code changes made to the function, footer and style files for reference. I deleted the theme from my local files, then downloaded it and moved it to the local theme file. I lost the changes I was trying to save, but at least it kept all my other customizations. I’m going to redo these changes from scratch, so as not to repeat the same mistake.

    Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Parse error: syntax error – site disappeared’ is closed to new replies.