• 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)
Viewing 1 replies (of 1 total)
  • The topic ‘Error for sidebar-init.php’ is closed to new replies.