Parse error: syntax error – site disappeared
-
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 249The 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.
The topic ‘Parse error: syntax error – site disappeared’ is closed to new replies.