Title: functions.php parse error problem
Last modified: August 19, 2016

---

# functions.php parse error problem

 *  [agarrison](https://wordpress.org/support/users/agarrison/)
 * (@agarrison)
 * [16 years ago](https://wordpress.org/support/topic/functionsphp-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.

## Tags

 * [parse-error](https://wordpress.org/support/topic-tag/parse-error/)
 * [thumbnail](https://wordpress.org/support/topic-tag/thumbnail/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 0 replies
 * 1 participant
 * Last reply from: [agarrison](https://wordpress.org/support/users/agarrison/)
 * Last activity: [16 years ago](https://wordpress.org/support/topic/functionsphp-parse-error-problem/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
