Broken Theme: Syntax Error

Install and activate the attached theme.

Download Zip

Expected Outcome Expected Outcome

When activated,

Parse error: syntax error, unexpected end of file in /Applications/MAMP/htdocs/wordpress/wp-content/themes/broken-theme/functions.php on line 197

Top ↑

How to fix How to fix

When viewing the file /wp-content/themes/broken-theme/functions.php, line 197 looks perfectly fine:

//sld_register_post_type( 'project' );

However if we expand our view to that whole ending section, the issue turns out to be a missing semi-colon on line 194:

Screen Shot 2013-03-11 at 1.19.52 PM

To fix it, just add in a semi-colon:

/**
* Implement the Custom Header feature
*/
require( get_template_directory() . '/inc/custom-header.php' );

//sld_register_post_type( 'project' );

Last updated: