Title: Parse error after editin theme editor
Last modified: August 31, 2016

---

# Parse error after editin theme editor

 *  [taskylon](https://wordpress.org/support/users/taskylon/)
 * (@taskylon)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/parse-error-after-editin-theme-editor/)
 * After seeking a solution about thumbnail size, I found in wordpress codex some
   codes and when i add them in editor in function php my blog stopped working. 
   It is a blank page with this error message :
 * **Parse error: syntax error, unexpected end of file in /home/taskylon/public_html/
   wp-content/themes/easel/functions.php on line 487**
 * I opened my cplesk profile but I cant see the specific line. I assume the problem
   is here:
 * if (!function_exists(‘easel_display_post_thumbnail’)) {
    function easel_display_post_thumbnail(
   $size = ‘thumbnail’) { global $post, $wp_query; if ($post->post_type == ‘post’){
   $post_thumbnail = ”; $link = get_post_meta( $post->ID, ‘link’, true ); if (empty(
   $link)) $link = get_permalink(); if ( has_post_thumbnail() ) { if (is_home()){
   $post_thumbnail = ‘<div class=”post-image”><center>[‘.get_the_post_thumbnail($post->ID, $size).’](https://wordpress.org/support/topic/parse-error-after-editin-theme-editor/&apos;.$link.&apos;?output_format=md)
   </center></div>’.”\r\n”; } else $post_thumbnail = ‘<div class=”post-image”><center
   >’.get_the_post_thumbnail($post->ID, $size).'</center></div>’.”\r\n”; } else {
   $url_image = get_post_meta($post->ID, ‘featured-image’, true); if (!empty($url_image))
   $post_thumbnail = ‘<div class=”post-image”><center>[<img src=”‘.$url_image.'” title=”‘.get_the_title().'” alt=”‘.get_the_title().'”>](https://wordpress.org/support/topic/parse-error-after-editin-theme-editor/&apos;.$link.&apos;?output_format=md)
   </center></div>’.”\r\n”; } echo apply_filters(‘easel_display_post_thumbnail’,
   $post_thumbnail); } } }
 * Could you please tell me where exactly is the problem and how to fix it?
    Thank
   you
 * My blog is [http://www.taskylonea.com](http://www.taskylonea.com)

The topic ‘Parse error after editin theme editor’ is closed to new replies.

 * 0 replies
 * 1 participant
 * Last reply from: [taskylon](https://wordpress.org/support/users/taskylon/)
 * Last activity: [10 years, 4 months ago](https://wordpress.org/support/topic/parse-error-after-editin-theme-editor/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
