Wordpress 分析错误:语法错误,16中出现意外的“添加主题支持”(T字符串)
我想在这里共享Functions.php所有代码,下面是第16行/home/autocara/public\u html/wp content/themes/leadgenthemev3bannerfix/Functions.php中的错误消息Parse error:syntax error,意外的“add_theme_support”T_字符串 有人说问题具体在哪里Wordpress 分析错误:语法错误,16中出现意外的“添加主题支持”(T字符串),wordpress,wordpress-theming,Wordpress,Wordpress Theming,我想在这里共享Functions.php所有代码,下面是第16行/home/autocara/public\u html/wp content/themes/leadgenthemev3bannerfix/Functions.php中的错误消息Parse error:syntax error,意外的“add_theme_support”T_字符串 有人说问题具体在哪里 <?php load_theme_textdomain('text_domain'); ?> <?php
<?php load_theme_textdomain('text_domain'); ?>
<?php
add_theme_support( 'post-thumbnails' );
set_post_thumbnail_size( 150, 150, true );
add_image_size( 'single-post-thumbnail', 300, 9999 );
automatic_feed_links();
function removeHeadLinks() {
remove_action('wp_head', 'rsd_link');
remove_action('wp_head', 'wlwmanifest_link');
}
add_action('init', 'removeHeadLinks');
remove_action('wp_head', 'wp_generator');
if (function_exists('register_sidebar')) {
register_sidebar(array(
'name' => 'Sidebar Widgets',
'id' => 'sidebar-widgets',
'description' => 'These are widgets for the sidebar.',
'before_widget' => '<div id="%1$s" class="widget %2$s">',
'after_widget' => '</div>',
'before_title' => '<h4>',
'after_title' => '</h4>'
));
}
这是全部文件吗?错误消息中的第16行可能与粘贴代码中的第16行不同。