Hello,
I'm a rookie at this and not sure the slightest way to fix this error message. I added a piece of code I received in a premium theme forum and got this and can't move forward. I'm being told that the code is fine, but keep receiving this message. Any help would be GREATLY appreciated!
ERROR MESSAGE:
Parse error: syntax error, unexpected $end in /home/gabriel/public_html/wp-content/themes/executive/functions.php on line 53
Below is the entire functions.php code:
The code which was added is at the very bottom (removing page titles):
<?php
// Start the engine
require_once(TEMPLATEPATH.'/lib/init.php');
// Add new image sizes
add_image_size('home-top', 400, 270, TRUE);
add_image_size('home-bottom', 215, 140, TRUE);
// Register widget areas
genesis_register_sidebar(array(
'name'=>'Home Top',
'id' => 'home-top',
'description' => 'This is the top section of the homepage.',
'before_widget' => '<div id="%1$s" class="widget %2$s">', 'after_widget' => '</div>',
'before_title'=>'<h4 class="widgettitle">','after_title'=>'</h4>'
));
genesis_register_sidebar(array(
'name'=>'Home Bottom #1',
'id' => 'home-bottom-1',
'description' => 'This is the first column of the bottom section of the homepage.',
'before_widget' => '<div id="%1$s" class="widget %2$s">', 'after_widget' => '</div>',
'before_title'=>'<h4 class="widgettitle">','after_title'=>'</h4>'
));
genesis_register_sidebar(array(
'name'=>'Home Bottom #2',
'id' => 'home-bottom-2',
'description' => 'This is the second column of the bottom section of the homepage.',
'before_widget' => '<div id="%1$s" class="widget %2$s">', 'after_widget' => '</div>',
'before_title'=>'<h4 class="widgettitle">','after_title'=>'</h4>'
));
genesis_register_sidebar(array(
'name'=>'Home Bottom #3',
'id' => 'home-bottom-3',
'description' => 'This is the third column of the bottom section of the homepage.',
'before_widget' => '<div id="%1$s" class="widget %2$s">', 'after_widget' => '</div>',
'before_title'=>'<h4 class="widgettitle">','after_title'=>'</h4>'
));
genesis_register_sidebar(array(
'name'=>'Home Bottom #4',
'id' => 'home-bottom-4',
'description' => 'This is the fourth column of the bottom section of the homepage.',
'before_widget' => '<div id="%1$s" class="widget %2$s">', 'after_widget' => '</div>',
'before_title'=>'<h4 class="widgettitle">','after_title'=>'</h4>'
));
//REMOVE PAGE TITLE
add_action( 'get_header', 'child_remove_page_titles');
function child_remove_page_titles() {
if (is_page()) {
remove_action("genesis_post_title'< 'genesis_do_post_title');
}
}