Title: PLEASE HELP parse error unexpected T_string
Last modified: August 20, 2016

---

# PLEASE HELP parse error unexpected T_string

 *  Resolved [ana1223](https://wordpress.org/support/users/ana1223/)
 * (@ana1223)
 * [13 years, 11 months ago](https://wordpress.org/support/topic/please-help-parse-error-unexpected-t_string/)
 * I was trying to change my favicon and instead I screwed something up and now 
   I have this error message ” Parse error: syntax error, unexpected T_STRING, expecting‘,’
   or ‘;’ in /home/ana1223/webapps/wp/wp-content/themes/Momento/lib/Themater.php
   on line 336 ” I’ve already gone back and replaced the code that I edited with
   the theme’s original code and it’s still giving me the same error message. PLEASE
   PLEASE help me I don’t know how to fix this and it’s so frustrating!
 * _[ **509 lines of code moderated.** For more than [**10 lines** of code](http://codex.wordpress.org/Forum_Welcome#Posting_Code)
   please use [pastebin.com](http://pastebin.com/) instead. ]_

Viewing 3 replies - 1 through 3 (of 3 total)

 *  [potentweb](https://wordpress.org/support/users/potentweb/)
 * (@potentweb)
 * [13 years, 11 months ago](https://wordpress.org/support/topic/please-help-parse-error-unexpected-t_string/#post-2829004)
 * I can’t see your code since it was moderated, but you probably got your single
   and double quotes mixed up somewhere.
 *  Thread Starter [ana1223](https://wordpress.org/support/users/ana1223/)
 * (@ana1223)
 * [13 years, 11 months ago](https://wordpress.org/support/topic/please-help-parse-error-unexpected-t_string/#post-2829025)
 * the only part I changed was this section:
    function _head_elements() { // Favicon
   if($this->display[‘favicon’]) { echo ‘<link rel=”shortcut icon” href=”‘ . $this-
   >get_option(‘favicon’) . ‘” type=”image/x-icon” />’ . “\n”; }
 *  [potentweb](https://wordpress.org/support/users/potentweb/)
 * (@potentweb)
 * [13 years, 11 months ago](https://wordpress.org/support/topic/please-help-parse-error-unexpected-t_string/#post-2829027)
 * Here you go.
 *     ```
       <?php
       function _head_elements() {
       	if($this->display['favicon']) {
       		echo '<link rel="shortcut icon" href="'. $this->get_option('favicon') .'" type="image/x-icon" />' . "\n";
       	}
       }
       ?>
       ```
   

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘PLEASE HELP parse error unexpected T_string’ is closed to new replies.

## Tags

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

 * 3 replies
 * 2 participants
 * Last reply from: [potentweb](https://wordpress.org/support/users/potentweb/)
 * Last activity: [13 years, 11 months ago](https://wordpress.org/support/topic/please-help-parse-error-unexpected-t_string/#post-2829027)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
