Title: Parse error: syntax error, unexpected &#039;Bar&#039; (T_STRING)
Last modified: August 30, 2016

---

# Parse error: syntax error, unexpected 'Bar' (T_STRING)

 *  [justanothermom](https://wordpress.org/support/users/justanothermom/)
 * (@justanothermom)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-bar-t_string/)
 * Any help would be appreciated… I was attempting to customize my functions.php
   file. At first, it was fine. I added in a custom header specification and it 
   was fine. Then I followed a tutorial for adding a utility bar and now I keep 
   getting this error:
 * Parse error: syntax error, unexpected ‘Bar’ (T_STRING) – wp-content/themes/foodiepro/
   functions.php on line 200
 * However, when I run the full .php code in several checkers, it comes back fine.
   So I’m not sure where it’s going wrong.
 * I’ve even tried copying and pasting the original code from the functions.php 
   file and it still returns that same Parse error.

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

 *  Moderator [t-p](https://wordpress.org/support/users/t-p/)
 * (@t-p)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-bar-t_string/#post-6880630)
 * Your current theme (foodiepro) seem to be the issue.
 * To confirm, try switching to the unedited default Theme (Twenty Fifteen, etc.)
   for a moment using [FTP ](http://codex.wordpress.org/FTP_Clients), or your web-
   host’s cPanel or whatever file management application your host provides. Navigate
   to /wp-content/themes/ and switch to the default theme by renaming your current
   theme’s folder by adding “-old” to the end of the folder name. Alternately, you
   can remove other themes except the default theme. That will force your site to
   use it.
 *  [girlieworks](https://wordpress.org/support/users/girlieworks/)
 * (@girlieworks)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-bar-t_string/#post-6880631)
 * > Then I followed a tutorial for adding a utility bar and now I keep getting 
   > this error:
   > Parse error: syntax error, unexpected ‘Bar’ (T_STRING) – wp-content/themes/
   > foodiepro/functions.php on line 200
 * I’m guessing that [this](http://www.carriedils.com/widget-area-above-header-genesis/)
   the tutorial you used, in which case, if you simply copied and pasted the code
   directly from the “Register Utility Bar Widget Areas” section into your `functions.
   php` file, then this is exactly the parse error I’d expect to see.
 * The code in that section of the article isn’t actually formatted for direct “
   copy and paste”, in that it contains “curly” quotes where PHP requires “straight”
   quotes instead.
 * So, after pasting the code, you’d have to go through and fix all those quotes
   in order to have the correct “working” syntax.
 *  Thread Starter [justanothermom](https://wordpress.org/support/users/justanothermom/)
 * (@justanothermom)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-bar-t_string/#post-6880632)
 * Ah, got it, thanks!
 * I will navigate away from it, thanks!
 *  [girlieworks](https://wordpress.org/support/users/girlieworks/)
 * (@girlieworks)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-bar-t_string/#post-6880633)
 * [@justanothermom](https://wordpress.org/support/users/justanothermom/) in case
   you missed it as we were posting at virtually the same time, you might want to
   have a look at my reply above. 🙂

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

The topic ‘Parse error: syntax error, unexpected 'Bar' (T_STRING)’ is closed to 
new replies.

## Tags

 * [foodie pro](https://wordpress.org/support/topic-tag/foodie-pro/)
 * [php-error](https://wordpress.org/support/topic-tag/php-error/)
 * [syntax error](https://wordpress.org/support/topic-tag/syntax-error/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 4 replies
 * 3 participants
 * Last reply from: [girlieworks](https://wordpress.org/support/users/girlieworks/)
 * Last activity: [10 years, 5 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-bar-t_string/#post-6880633)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
