• 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)
  • Thread Starter EnnisP

    (@ennisp)

    The above problem started when I began trying install a new header on the default theme. I uploaded the new image and just changed the name of the file to kubrickheader.jpg. It worked but the image was still overshadowed by the default header. I messed with some of the script in the functions.php file to see if it would change anything but instead got the following error message:

    Parse error: syntax error, unexpected ‘}’ in /home/nowth3/public_html/wp-content/themes/default/functions.php on line 26

    Unfortunately, line 26 doesn’t have a ‘}’ so don’t know what to do. I did repaste all code as I originally found it but that didn’t work.

    Now I can’t even access my web page https://nowthinkaboutit.com

    Can anyone please give me direction on what to do next? PLEASE

Viewing 1 replies (of 1 total)
  • The topic ‘Error message updating functions.php file’ is closed to new replies.