• Resolved ana1223

    (@ana1223)


    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 please use pastebin.com instead. ]

Viewing 3 replies - 1 through 3 (of 3 total)
  • 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

    (@ana1223)

    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”;
    }

    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.