質問編集履歴

1

修正

2019/07/05 04:59

投稿

moko888
moko888

スコア20

test CHANGED
File without changes
test CHANGED
@@ -11,3 +11,145 @@
11
11
 
12
12
 
13
13
  どなたか対処方法をご存知でしたら、教えていただきたいと思っております。回答よろしくお願いいたします。
14
+
15
+
16
+
17
+ テーマエディターのheader.php
18
+
19
+ ```php
20
+
21
+ <!DOCTYPE html>
22
+
23
+ <!--[if lt IE 7]>
24
+
25
+ <html class="ie6" <?php language_attributes(); ?>> <![endif]-->
26
+
27
+ <!--[if IE 7]>
28
+
29
+ <html class="i7" <?php language_attributes(); ?>> <![endif]-->
30
+
31
+ <!--[if IE 8]>
32
+
33
+ <html class="ie" <?php language_attributes(); ?>> <![endif]-->
34
+
35
+ <!--[if gt IE 8]><!-->
36
+
37
+ <html <?php language_attributes(); ?>>
38
+
39
+ <!--<![endif]-->
40
+
41
+ <head prefix="og: http://ogp.me/ns# fb: http://ogp.me/ns/fb# article: http://ogp.me/ns/article#">
42
+
43
+ <meta charset="<?php bloginfo( 'charset' ); ?>" >
44
+
45
+ <meta name="viewport" content="width=device-width,initial-scale=1.0,user-scalable=no">
46
+
47
+ <meta name="format-detection" content="telephone=no" >
48
+
49
+
50
+
51
+ <?php if ( is_home() && !is_paged() ): ?>
52
+
53
+ <meta name="robots" content="index,follow">
54
+
55
+ <?php elseif ( is_search() or is_404() ): ?>
56
+
57
+ <meta name="robots" content="noindex,follow">
58
+
59
+ <?php elseif ( !is_category() && is_archive() ): ?>
60
+
61
+ <meta name="robots" content="noindex,follow">
62
+
63
+ <?php elseif ( is_paged() ): ?>
64
+
65
+ <meta name="robots" content="noindex,follow">
66
+
67
+ <?php elseif ( trim($GLOBALS["stdata9"]) !== '' && ($GLOBALS["stdata9"]) == $post->ID ): ?>
68
+
69
+ <meta name="robots" content="noindex,follow">
70
+
71
+ <?php elseif ( is_category() && trim($GLOBALS["stdata15"]) !== ''): ?>
72
+
73
+ <meta name="robots" content="noindex,follow">
74
+
75
+ <?php endif; ?>
76
+
77
+
78
+
79
+ <link rel="alternate" type="application/rss+xml" title="<?php echo esc_attr( get_bloginfo( 'name' ) ); ?> RSS Feed" href="<?php bloginfo( 'rss2_url' ); ?>" />
80
+
81
+ <link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>" >
82
+
83
+ <!--[if lt IE 9]>
84
+
85
+ <script src="<?php echo esc_url( get_template_directory_uri() ) ; ?>/js/html5shiv.js"></script>
86
+
87
+ <![endif]-->
88
+
89
+ <?php if ( is_singular() ) wp_enqueue_script( "comment-reply" ); ?>
90
+
91
+ <?php wp_head(); ?>
92
+
93
+ <?php get_template_part( 'analyticstracking' ); //アナリティクスコード ?>
94
+
95
+ <?php get_template_part( 'st-ogp' ); //OGP設定 ?>
96
+
97
+ <?php get_template_part( 'st-richjs' ); //効果追加 ?>
98
+
99
+ <?php get_template_part( 'a-header-code' ); //ヘッダーに挿入するコード ?>
100
+
101
+ </head>
102
+
103
+ <body <?php body_class(); ?> >
104
+
105
+ <?php if( (!st_is_mobile()) && (trim($GLOBALS['stdata110']) !== '') && (trim($GLOBALS['stdata111']) !== '') ): //動画用ID ?>
106
+
107
+ <div id="st-player">
108
+
109
+ <?php endif; ?>
110
+
111
+ <div id="st-ami">
112
+
113
+ <div id="wrapper" class="<?php st_wrap_class(); ?>">
114
+
115
+ <div id="wrapper-in">
116
+
117
+ <header id="<?php st_head_class(); ?>">
118
+
119
+ <div id="headbox-bg">
120
+
121
+ <div class="clearfix" id="headbox">
122
+
123
+ <?php get_template_part( 'st-accordion-menu' ); //アコーディオンメニュー ?>
124
+
125
+ <div id="header-l">
126
+
127
+ <?php get_template_part( 'st-header-logo' ); //サイト名とディスクリプション ?>
128
+
129
+ </div><!-- /#header-l -->
130
+
131
+ <div id="header-r" class="smanone">
132
+
133
+ <?php if ( isset($GLOBALS['stdata43']) && $GLOBALS['stdata43'] === 'yes' ) {
134
+
135
+ get_template_part( 'st-footer-link' ); //フッターリンク
136
+
137
+ } ?>
138
+
139
+ <?php get_template_part( 'st-header-widget' ); //電話番号とヘッダー用ウィジェット ?>
140
+
141
+ </div><!-- /#header-r -->
142
+
143
+ </div><!-- /#headbox-bg -->
144
+
145
+ </div><!-- /#headbox clearfix -->
146
+
147
+ <?php get_template_part( 'st-header-image' ); //カスタムヘッダー画像 ?>
148
+
149
+
150
+
151
+ </header>
152
+
153
+ <div id="content-w">
154
+
155
+ ```