Quantcast
Channel: help – WordPress.org Forums
Viewing all articles
Browse latest Browse all 13924

andywilks on "Parse error: syntax error, unexpected T_IF in"

$
0
0

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 all articles
Browse latest Browse all 13924

Trending Articles