Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/wordpress/12.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Wordpress 分析错误:语法错误,16中出现意外的“添加主题支持”(T字符串)_Wordpress_Wordpress Theming - Fatal编程技术网

Wordpress 分析错误:语法错误,16中出现意外的“添加主题支持”(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

我想在这里共享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


    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行不同。