質問するログイン新規登録

質問編集履歴

1

修正

2019/07/05 04:59

投稿

moko888
moko888

スコア20

title CHANGED
File without changes
body CHANGED
@@ -4,4 +4,75 @@
4
4
 
5
5
  SEOチェキで確認してみたところ、設定はきちんと反映されていました。
6
6
 
7
- どなたか対処方法をご存知でしたら、教えていただきたいと思っております。回答よろしくお願いいたします。
7
+ どなたか対処方法をご存知でしたら、教えていただきたいと思っております。回答よろしくお願いいたします。
8
+
9
+ テーマエディターのheader.php
10
+ ```php
11
+ <!DOCTYPE html>
12
+ <!--[if lt IE 7]>
13
+ <html class="ie6" <?php language_attributes(); ?>> <![endif]-->
14
+ <!--[if IE 7]>
15
+ <html class="i7" <?php language_attributes(); ?>> <![endif]-->
16
+ <!--[if IE 8]>
17
+ <html class="ie" <?php language_attributes(); ?>> <![endif]-->
18
+ <!--[if gt IE 8]><!-->
19
+ <html <?php language_attributes(); ?>>
20
+ <!--<![endif]-->
21
+ <head prefix="og: http://ogp.me/ns# fb: http://ogp.me/ns/fb# article: http://ogp.me/ns/article#">
22
+ <meta charset="<?php bloginfo( 'charset' ); ?>" >
23
+ <meta name="viewport" content="width=device-width,initial-scale=1.0,user-scalable=no">
24
+ <meta name="format-detection" content="telephone=no" >
25
+
26
+ <?php if ( is_home() && !is_paged() ): ?>
27
+ <meta name="robots" content="index,follow">
28
+ <?php elseif ( is_search() or is_404() ): ?>
29
+ <meta name="robots" content="noindex,follow">
30
+ <?php elseif ( !is_category() && is_archive() ): ?>
31
+ <meta name="robots" content="noindex,follow">
32
+ <?php elseif ( is_paged() ): ?>
33
+ <meta name="robots" content="noindex,follow">
34
+ <?php elseif ( trim($GLOBALS["stdata9"]) !== '' && ($GLOBALS["stdata9"]) == $post->ID ): ?>
35
+ <meta name="robots" content="noindex,follow">
36
+ <?php elseif ( is_category() && trim($GLOBALS["stdata15"]) !== ''): ?>
37
+ <meta name="robots" content="noindex,follow">
38
+ <?php endif; ?>
39
+
40
+ <link rel="alternate" type="application/rss+xml" title="<?php echo esc_attr( get_bloginfo( 'name' ) ); ?> RSS Feed" href="<?php bloginfo( 'rss2_url' ); ?>" />
41
+ <link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>" >
42
+ <!--[if lt IE 9]>
43
+ <script src="<?php echo esc_url( get_template_directory_uri() ) ; ?>/js/html5shiv.js"></script>
44
+ <![endif]-->
45
+ <?php if ( is_singular() ) wp_enqueue_script( "comment-reply" ); ?>
46
+ <?php wp_head(); ?>
47
+ <?php get_template_part( 'analyticstracking' ); //アナリティクスコード ?>
48
+ <?php get_template_part( 'st-ogp' ); //OGP設定 ?>
49
+ <?php get_template_part( 'st-richjs' ); //効果追加 ?>
50
+ <?php get_template_part( 'a-header-code' ); //ヘッダーに挿入するコード ?>
51
+ </head>
52
+ <body <?php body_class(); ?> >
53
+ <?php if( (!st_is_mobile()) && (trim($GLOBALS['stdata110']) !== '') && (trim($GLOBALS['stdata111']) !== '') ): //動画用ID ?>
54
+ <div id="st-player">
55
+ <?php endif; ?>
56
+ <div id="st-ami">
57
+ <div id="wrapper" class="<?php st_wrap_class(); ?>">
58
+ <div id="wrapper-in">
59
+ <header id="<?php st_head_class(); ?>">
60
+ <div id="headbox-bg">
61
+ <div class="clearfix" id="headbox">
62
+ <?php get_template_part( 'st-accordion-menu' ); //アコーディオンメニュー ?>
63
+ <div id="header-l">
64
+ <?php get_template_part( 'st-header-logo' ); //サイト名とディスクリプション ?>
65
+ </div><!-- /#header-l -->
66
+ <div id="header-r" class="smanone">
67
+ <?php if ( isset($GLOBALS['stdata43']) && $GLOBALS['stdata43'] === 'yes' ) {
68
+ get_template_part( 'st-footer-link' ); //フッターリンク
69
+ } ?>
70
+ <?php get_template_part( 'st-header-widget' ); //電話番号とヘッダー用ウィジェット ?>
71
+ </div><!-- /#header-r -->
72
+ </div><!-- /#headbox-bg -->
73
+ </div><!-- /#headbox clearfix -->
74
+ <?php get_template_part( 'st-header-image' ); //カスタムヘッダー画像 ?>
75
+
76
+ </header>
77
+ <div id="content-w">
78
+ ```