我收到此错误:
Parse error: syntax error, unexpected '{' in /home/u696221601/public_html/wp-content/themes/oblivion/themeOptions/functions.php on line 3
在这一行:
<?php
phpif ( !function_exists( 'optionsframework_init' ) )
{
/*-----------------------------------------------------------------------------------*/ /* Options Framework Theme/*-----------------------------------------------------------------------------------*/ /* Set the file path based on whether the Options Framework Theme is a parent theme or child theme */
if ( get_stylesheet_directory() == get_template_directory() )
{
答案 0 :(得分:5)
尝试更改此
phpif ( !function_exists( 'optionsframework_init' ) )
{
到
if ( !function_exists( 'optionsframework_init' ) )
{
答案 1 :(得分:0)
试试这个
if ( !function_exists( 'optionsframework_init' ) )
{
if ( get_stylesheet_directory() == get_template_directory() )
{
//do somting
}
}