functions.php parse error problem
-
Hello,
I am setting up a new site and tried to include the following code to functions.php to add thumbnail support:
add_theme_support(‘post-thumbnails’);
But when I try to update/save the functions.php file, i get this error message:
Parse error: syntax error, unexpected ‘<‘ in /home2/leapusao/public_html/drobe/wp-content/themes/lucker/functions.php on line 9
Here is my functions.php code:
<?php
require_once(TEMPLATEPATH . ‘/dashboard.php’);
if ( function_exists(‘register_sidebar’) ) {
register_sidebar( array(‘name’ => ‘sidebar_top’, ‘before_widget’ => ”, ‘after_widget’ => ”, ‘before_title’ => ‘<h3>’, ‘after_title’ => ‘</h3>’) );
register_sidebar( array(‘name’ => ‘sidebar_left’, ‘before_widget’ => ”, ‘after_widget’ => ”, ‘before_title’ => ‘<h3>’, ‘after_title’ => ‘</h3>’) );
register_sidebar( array(‘name’ => ‘sidebar_right’, ‘before_widget’ => ”, ‘after_widget’ => ”, ‘before_title’ => ‘<h3>’, ‘after_title’ => ‘</h3>’) );
}
add_theme_support(‘post-thumbnails’);
add_filter(‘comments_template’, ‘legacy_comments’);
function legacy_comments($file) {
if(!function_exists(‘wp_list_comments’)) : // WP 2.7-only check
$file = TEMPLATEPATH . ‘/legacy.comments.php’;
endif;
return $file;
}
?>Thanks!
The topic ‘functions.php parse error problem’ is closed to new replies.