0
上
<title><?php wp_title(''); ?> | <?php bloginfo('name'); ?></title>
問題がインデックスのことです.phpは次のようになります。 |ブログの名前
どうすればこの問題を解決できますか?
ありがとうございます!あなたがあなたのブログ/ウェブページのタイトルを設定したら
<meta http-equiv="Content-Type" content="text/html; charset=<?php bloginfo('charset'); ?>" />
<?php
if (! function_exists('_wp_render_title_tag')) :
function yourtheme_render_title() {
?>
<title><?php wp_title(' ', true, 'right'); ?></title>
<?php
}
add_action('wp_head', 'yourtheme_render_title');
endif;
?>
は仕事ができる必要があります:あなたのContent-Type
メタこのように、追加の下であなたのfunctions.php
追加
add_theme_support('title-tag');
そして、あなたのヘッダー内で
いいね、ありがとうございました:) –
幸せに助けてください:) –