Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/254.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
Php 删除wordpress中不必要的标题_Php_Wordpress - Fatal编程技术网

Php 删除wordpress中不必要的标题

Php 删除wordpress中不必要的标题,php,wordpress,Php,Wordpress,我刚刚和wordpress合作,并设法建立了我的网站。现在我在我的站点中得到了这个不必要的标题(黑色标题…在顶部),请参见以下内容: 我的标题代码如下所示: <!doctype html> <html <?php language_attributes(); ?> > <head> <meta charset="<?php bloginfo('charset'); ?>">

我刚刚和wordpress合作,并设法建立了我的网站。现在我在我的站点中得到了这个不必要的标题(黑色标题…在顶部),请参见以下内容:

我的标题代码如下所示:

<!doctype html>
<html <?php  language_attributes(); ?> >
    <head>
        <meta charset="<?php  bloginfo('charset');   ?>">
        <meta http-equiv="x-ua-compatible" content="ie=edge">
        <title><?php bloginfo('name');  ?></title>
        <meta name="description" content="">
        <meta name="viewport" content="width=device-width, initial-scale=1">
        <link rel="shortcut icon" type="image/x-icon" href="favicon.ico">        
        <link rel="stylesheet" href="style.css">

        <?php  wp_head(); ?>

    </head>
    <body <?php  body_class(); ?>>

    <header class="site-header">
        <h1><a href="<?php echo home_url(); ?>"></a><?php bloginfo('name');  ?></h1>
        <h5><?php bloginfo('description'); ?></h5>

        <nav class="site-nav">

            <?php  
                $args = array( 
                    'theme_location' => 'primary' 
                );
            ?>    

            <?php  wp_nav_menu($args); ?>

        </nav>

    </header>


默认情况下,当您登录后端时,Wordpress会显示此管理栏。非管理员用户将不会看到它,但如果需要,您可以在您的配置文件中禁用它

转到用户->您的个人资料


禁用选项“查看站点时显示工具栏”

Wordpress在您登录后端时默认显示此管理栏。非管理员用户将不会看到它,但如果需要,您可以在您的配置文件中禁用它

remove this line, the header will goes hide 

<?php  wp_head(); ?> 
转到用户->您的个人资料

在查看站点时禁用选项“显示工具栏”

删除此行,标题将隐藏
remove this line, the header will goes hide 

<?php  wp_head(); ?> 
删除此行,标题将隐藏