Title: Parse error: syntax error, unexpected T_IF in
Last modified: August 22, 2016

---

# Parse error: syntax error, unexpected T_IF in

 *  [andywilks](https://wordpress.org/support/users/andywilks/)
 * (@andywilks)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/help-parse-error-syntax-error-unexpected-t_if-in/)
 * I was just trying to edit the functions.php page to exclude certain posts when
   using the search bar. After pasting in the code, an error message appears that
   says, “Parse error: syntax error, unexpected T_IF in …..on line 61.” I have tried
   pasting in the original functions.php code, however the error message still appears.
   I cannot access anything on my dashboard now. PLEASE HELP!
 *     ```
       <?php
       /**
        * Functions and definitions.
        *
        * @package WordPress
        * @subpackage One
        * @since One 1.0
        */
   
       /**
        * Framework.
        * PLEASE LEAVE THIS AREA UNTOUCHED, IN ORDER NOT TO BREAK CORE FUNCTIONALITY.
        * -----------------------------------------------------------------------------
        */
       if( !defined('THB_THEME_KEY') ) define( 'THB_THEME_KEY', 'one' ); // Required, not displayed anywhere.
   
       /**
        * Framework.
        */
       require_once 'framework/boot.php';
   
       /**
        * General configuration.
        */
       thb_system_require_config( 'config-general.php' );
   
       /**
        * Theme functionalities.
        */
       thb_system_require_config( 'config-functionalities.php' );
   
       /**
        * Theme options.
        */
       thb_system_require_config( 'config-options.php' );
   
       /**
        * Theme customizations.
        */
       thb_system_require_config( 'config-custom.php' );
   
       /**
        * Theme plugins.
        */
       thb_system_require_config( 'config-plugins.php' );
   
       /**
        * Custom functions.
        */
       thb_require_custom_functions();
   
       /**
        * You can start adding your custom functions from here!
        * -----------------------------------------------------------------------------
        */
   
       if( !isset($content_width) ) $content_width = 960;
       ```
   

Viewing 1 replies (of 1 total)

 *  [WPyogi](https://wordpress.org/support/users/wpyogi/)
 * (@wpyogi)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/help-parse-error-syntax-error-unexpected-t_if-in/#post-5719265)
 * See this thread:
 * [https://wordpress.org/support/topic/non-existent-parse-error-shutting-down-site?replies=2](https://wordpress.org/support/topic/non-existent-parse-error-shutting-down-site?replies=2)

Viewing 1 replies (of 1 total)

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

## Tags

 * [code](https://wordpress.org/support/topic-tag/code/)
 * [function.php](https://wordpress.org/support/topic-tag/function-php/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 2 participants
 * Last reply from: [WPyogi](https://wordpress.org/support/users/wpyogi/)
 * Last activity: [11 years, 3 months ago](https://wordpress.org/support/topic/help-parse-error-syntax-error-unexpected-t_if-in/#post-5719265)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
