質問編集履歴
1
header.php、footer.php、を追加しました。
test
CHANGED
File without changes
|
test
CHANGED
@@ -57,3 +57,217 @@
|
|
57
57
|
他に足りない情報などありましたら教えていただけたら幸いです。。。
|
58
58
|
|
59
59
|
お手数おかけしますが、よろしくお願いいたします。
|
60
|
+
|
61
|
+
|
62
|
+
|
63
|
+
|
64
|
+
|
65
|
+
|
66
|
+
|
67
|
+
|
68
|
+
|
69
|
+
●追記
|
70
|
+
|
71
|
+
遅れてすみません。こちらで調べてみたところ、ヘッダーとフッターをファイルごと削除したら表示されました。でもファイルを残したまま中身を全部消すだけでは表示されませんでした。まだ原因はつかめていません。
|
72
|
+
|
73
|
+
|
74
|
+
|
75
|
+
```header.php
|
76
|
+
|
77
|
+
|
78
|
+
|
79
|
+
<!DOCTYPE html>
|
80
|
+
|
81
|
+
<html>
|
82
|
+
|
83
|
+
|
84
|
+
|
85
|
+
<head>
|
86
|
+
|
87
|
+
<meta charset="utf-8">
|
88
|
+
|
89
|
+
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
90
|
+
|
91
|
+
<title>Pocket Cabin</title>
|
92
|
+
|
93
|
+
<meta name="keywords" content="">
|
94
|
+
|
95
|
+
<meta name="description" content="">
|
96
|
+
|
97
|
+
<meta name="viewport" content="width=device-width">
|
98
|
+
|
99
|
+
<link rel="stylesheet" href="<?php bloginfo('template_directory'); ?>/css/jquery.bxslider.css" />
|
100
|
+
|
101
|
+
<link rel="stylesheet" href="<?php bloginfo('template_directory'); ?>/style.css" />
|
102
|
+
|
103
|
+
<link rel=”shortcut icon” href=”images/favicon.ico” />
|
104
|
+
|
105
|
+
|
106
|
+
|
107
|
+
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
|
108
|
+
|
109
|
+
<script src="https://code.createjs.com/createjs-2015.11.26.min.js"></script>
|
110
|
+
|
111
|
+
<script src="https://code.jquery.com/ui/1.11.0/jquery-ui.js"></script>
|
112
|
+
|
113
|
+
<script async src="https://platform.twitter.com/widgets.js" charset="utf-8"></script>
|
114
|
+
|
115
|
+
<!-- <script src="https://maps.googleapis.com/maps/api/js?key=XXX"></script> -->
|
116
|
+
|
117
|
+
|
118
|
+
|
119
|
+
<!-- begin: Facebook share meta tags -->
|
120
|
+
|
121
|
+
<meta property="og:locale" content="ja_JP">
|
122
|
+
|
123
|
+
<meta property="og:type" content="website">
|
124
|
+
|
125
|
+
<meta property="og:description" content="">
|
126
|
+
|
127
|
+
<meta property="og:title" content="">
|
128
|
+
|
129
|
+
<meta property="og:url" content="">
|
130
|
+
|
131
|
+
<meta property="og:site_name" content="">
|
132
|
+
|
133
|
+
<meta property="og:image" content="images/fb.jpg">
|
134
|
+
|
135
|
+
<!-- end: Facebook share meta tags -->
|
136
|
+
|
137
|
+
|
138
|
+
|
139
|
+
|
140
|
+
|
141
|
+
</head>
|
142
|
+
|
143
|
+
|
144
|
+
|
145
|
+
<body>
|
146
|
+
|
147
|
+
|
148
|
+
|
149
|
+
<header class="header">
|
150
|
+
|
151
|
+
<div class="container__wide">
|
152
|
+
|
153
|
+
<div id="logo">
|
154
|
+
|
155
|
+
<h1>
|
156
|
+
|
157
|
+
<a href="<?php echo home_url(); ?>">
|
158
|
+
|
159
|
+
<img class="ico_b" src="<?php bloginfo('template_directory'); ?>/images/logo.svg">
|
160
|
+
|
161
|
+
</a>
|
162
|
+
|
163
|
+
</h1>
|
164
|
+
|
165
|
+
</div>
|
166
|
+
|
167
|
+
<nav class="pc-only">
|
168
|
+
|
169
|
+
<ul id="main">
|
170
|
+
|
171
|
+
|
172
|
+
|
173
|
+
</ul>
|
174
|
+
|
175
|
+
|
176
|
+
|
177
|
+
</nav>
|
178
|
+
|
179
|
+
</div>
|
180
|
+
|
181
|
+
|
182
|
+
|
183
|
+
<div id="contBar"><a id="bar" class="menu-trigger sp-only"><span></span><span></span><span></span></a></div>
|
184
|
+
|
185
|
+
<div id="bar_menu" class="sp-only">
|
186
|
+
|
187
|
+
<ul>
|
188
|
+
|
189
|
+
|
190
|
+
|
191
|
+
</ul>
|
192
|
+
|
193
|
+
<div class="bar_menu-sns">
|
194
|
+
|
195
|
+
|
196
|
+
|
197
|
+
</div>
|
198
|
+
|
199
|
+
</div>
|
200
|
+
|
201
|
+
</header>
|
202
|
+
|
203
|
+
```
|
204
|
+
|
205
|
+
|
206
|
+
|
207
|
+
|
208
|
+
|
209
|
+
```footer.php
|
210
|
+
|
211
|
+
<footer class="bg_beige">
|
212
|
+
|
213
|
+
<a href="<?php echo home_url(); ?>">
|
214
|
+
|
215
|
+
<img class="ico_b" src="<?php bloginfo('template_directory'); ?>/images/logo.svg" alt="Pocket Cabin">
|
216
|
+
|
217
|
+
</a>
|
218
|
+
|
219
|
+
<div class="sns_wrap">
|
220
|
+
|
221
|
+
<a href="https://www.facebook.com/pocketcabin/" target="_blank" class="sns"><img src="<?php bloginfo('template_directory'); ?>/images/icon_facebook.svg"></a>
|
222
|
+
|
223
|
+
<a href="https://www.instagram.com/pocketcabin/" target="_blank" class="sns"><img src="<?php bloginfo('template_directory'); ?>/images/icon_instagram.svg"></a>
|
224
|
+
|
225
|
+
</div>
|
226
|
+
|
227
|
+
<div>Copyright © Pocket Cabin, All Rights Reserved.</div>
|
228
|
+
|
229
|
+
</footer>
|
230
|
+
|
231
|
+
|
232
|
+
|
233
|
+
<!-- Load Scripts -->
|
234
|
+
|
235
|
+
<script src="<?php bloginfo('template_directory'); ?>/js/jquery.bxslider.js"></script>
|
236
|
+
|
237
|
+
<script src="<?php bloginfo('template_directory'); ?>/js/scripts.js"></script>
|
238
|
+
|
239
|
+
|
240
|
+
|
241
|
+
<script>
|
242
|
+
|
243
|
+
$(window).on('load', function() {
|
244
|
+
|
245
|
+
var url = $(location).attr('href');
|
246
|
+
|
247
|
+
if(url.indexOf("?id=") != -1){
|
248
|
+
|
249
|
+
var id = url.split("?id=");
|
250
|
+
|
251
|
+
var $target = $('#' + id[id.length - 1]);
|
252
|
+
|
253
|
+
if($target.length){
|
254
|
+
|
255
|
+
var pos = $target.offset().top;
|
256
|
+
|
257
|
+
$("html, body").animate({scrollTop:pos}, 1000);
|
258
|
+
|
259
|
+
}
|
260
|
+
|
261
|
+
}
|
262
|
+
|
263
|
+
});
|
264
|
+
|
265
|
+
</script>
|
266
|
+
|
267
|
+
|
268
|
+
|
269
|
+
</body>
|
270
|
+
|
271
|
+
</html>
|
272
|
+
|
273
|
+
```
|