Title: Parse error: syntax error, unexpected T_STRING
Last modified: August 24, 2016

---

# Parse error: syntax error, unexpected T_STRING

 *  [nadiia8x](https://wordpress.org/support/users/nadiia8x/)
 * (@nadiia8x)
 * [11 years ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-t_string-67/)
 * I’m fairly new to wordpress and php.
    I tried to edit some code and add a custom
   widget after <?php this backfired and I got the error code Parse error: syntax
   error, unexpected T_STRING on line 2
 * I then removed all the code i pasted in and copied the original Brick Yard themes
   functions and definitions.
 * I’m still getting the same error! Help!
 * <?php
    /** * Brickyard functions and definitions. * [@package](https://wordpress.org/support/users/package/)
   BrickYard *@since BrickYard 1.0.0 */
 * /**
    * BrickYard theme variables. * */ $brickyard_themename = “BrickYard”; //
   Theme Name $brickyard_themever = “1.2.5”; //Theme version $brickyard_shortname
   = “brickyard”; //Shortname $brickyard_manualurl = get_template_directory_uri().‘/
   docs/documentation.html’; //Manual Url // Set path to BrickYard Framework and
   theme specific functions $brickyard_be_path = get_template_directory() . ‘/functions/
   be/’; //BackEnd Path $brickyard_fe_path = get_template_directory() . ‘/functions/
   fe/’; //FrontEnd Path $brickyard_be_pathimages = get_template_directory_uri().‘/
   functions/be/images’; //BackEnd Path $brickyard_fe_pathimages = get_template_directory_uri().”;//
   FrontEnd Path //Include Framework [BE] require_once ($brickyard_be_path . ‘fw-
   options.php’); // Framework Init // Include Theme specific functionality [FE]
   require_once ($brickyard_fe_path . ‘headerdata.php’); // Include css and js require_once(
   $brickyard_fe_path . ‘library.php’); // Include library, functions require_once(
   $brickyard_fe_path . ‘widget-posts-default.php’);// Posts-Default Widget
 * /**
    * BrickYard theme basic setup. * */

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

## Tags

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

 * 0 replies
 * 1 participant
 * Last reply from: [nadiia8x](https://wordpress.org/support/users/nadiia8x/)
 * Last activity: [11 years ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-t_string-67/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
