Error message updating functions.php file
-
When I update my functions.php file for wordpress default theme the following message comes up:
Parse error: syntax error, unexpected ‘}’ in /home/nowth3/public_html/wp-content/themes/default/functions.php on line 26
The code for that section is…
<?php /** * @package WordPress * @subpackage Default_Theme */ if ( function_exists('register_sidebar') ) register_sidebar(array( 'before_widget' => '<li id="%1$s" class="widget %2$s">', 'after_widget' => '</li>', 'before_title' => '<h2 class="widgettitle">', 'after_title' => '</h2>', )); /** @ignore */ function kubrick_head() { $head = "<style type='text/css'>\n<!--"; $output = ''; if ( kubrick_header_image() ) { $url = kubrick_header_image_url() ; $output .= "#header { background: url('$url') no-repeat bottom center; }\n"; } if ( false !== ( $color = kubrick_header_color() ) ) { $output .= "#headerimg h1 a, #headerimg h1 a:visited, #headerimg .description { color: $color; }\n"; } if ( false !== ( $display = kubrick_header_display() ) ) { $output .= "#headerimg { display: $display }\n"; } $foot = "--></style>\n"; if ( '' != $output ) echo $head . $output . $foot; }
Can anyone help?
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Error message updating functions.php file’ is closed to new replies.