Title: Error for sidebar-init.php
Last modified: August 19, 2016

---

# Error for sidebar-init.php

 *  [stunner](https://wordpress.org/support/users/stunner/)
 * (@stunner)
 * [15 years, 3 months ago](https://wordpress.org/support/topic/error-for-sidebar-initphp/)
 * Hi I’m kind of new at this and I tried changing font color on the sidebar-init
   php and now i get an error that says: Parse error: syntax error, unexpected ‘}’
   in /home/stunner/public_html/wp-content/themes/caffeinated/includes/sidebar-init.
   php on line 13…here’s the code hope you can help and show me what i need to change,
   thanks.
 * <?php
 * // Register widgetized areas
 * if (!function_exists(‘the_widgets_init’)) {
    function the_widgets_init() { if(!
   function_exists(‘register_sidebars’) ) return;
 *  register_sidebar(array(‘name’ => ‘Footer 1′,’id’ => ‘footer-1’, ‘description’
   => “Widetized footer”, ‘before_widget’ => ‘<div id=”%1$s” class=”widget %2$s”
   >’,’after_widget’ => ‘</div>’,’before_title’ => ‘<h3>’,’after_title’ => ‘</h3
   >’));
    register_sidebar(array(‘name’ => ‘Footer 2′,’id’ => ‘footer-2’, ‘description’
   => “Widetized footer”, ‘before_widget’ => ‘<div id=”%1$s” class=”widget %2$s”
   >’,’after_widget’ => ‘</div>’,’before_title’ => ‘<h3>’,’after_title’ => ‘</h3
   >’)); register_sidebar(array(‘name’ => ‘Footer 3′,’id’ => ‘footer-3’, ‘description’
   => “Widetized footer”, ‘before_widget’ => ‘<div id=”%1$s” class=”widget %2$s”
   >’,’after_widget’ => ‘</div>’,’before_title’ => ‘<h3>’,’after_title’ => ‘</h3
   >’)); } {
 * add_action( ‘init’, ‘the_widgets_init’ );
 * ?>

Viewing 1 replies (of 1 total)

 *  [Alwyn Botha](https://wordpress.org/support/users/123milliseconds/)
 * (@123milliseconds)
 * [15 years, 3 months ago](https://wordpress.org/support/topic/error-for-sidebar-initphp/#post-1941202)
 * 4th line from bottom
 * { should be }

Viewing 1 replies (of 1 total)

The topic ‘Error for sidebar-init.php’ is closed to new replies.

## Tags

 * [syntax error](https://wordpress.org/support/topic-tag/syntax-error/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 2 participants
 * Last reply from: [Alwyn Botha](https://wordpress.org/support/users/123milliseconds/)
 * Last activity: [15 years, 3 months ago](https://wordpress.org/support/topic/error-for-sidebar-initphp/#post-1941202)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
