質問編集履歴
2
header.phpを追加しました
test
CHANGED
File without changes
|
test
CHANGED
@@ -130,6 +130,296 @@
|
|
130
130
|
|
131
131
|
|
132
132
|
|
133
|
+
|
134
|
+
|
135
|
+
|
136
|
+
|
137
|
+
|
138
|
+
|
139
|
+
|
140
|
+
|
141
|
+
|
142
|
+
|
143
|
+
```ここに言語を入力
|
144
|
+
|
145
|
+
<!DOCTYPE html>
|
146
|
+
|
147
|
+
<html lang="ja">
|
148
|
+
|
149
|
+
<head>
|
150
|
+
|
151
|
+
<meta charset="UTF-8">
|
152
|
+
|
153
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
154
|
+
|
155
|
+
<meta http-equiv="X-UA-Compatible" content="ie=edge">
|
156
|
+
|
157
|
+
<link rel="stylesheet" href="<?php echo get_template_directory_uri(); ?>/css/reset.css">
|
158
|
+
|
159
|
+
<link rel="stylesheet" href="<?php echo get_template_directory_uri(); ?>/css/style.css">
|
160
|
+
|
161
|
+
<?php if ( is_page( 'blog' ) ): ?>
|
162
|
+
|
163
|
+
<link rel="stylesheet" href="<?php echo get_template_directory_uri(); ?>/css/blog.css">
|
164
|
+
|
165
|
+
<?php endif; ?>
|
166
|
+
|
167
|
+
<?php if ( is_page( 'contact' ) ): ?>
|
168
|
+
|
169
|
+
<link rel="stylesheet" href="<?php echo get_template_directory_uri(); ?>/css/contact.css">
|
170
|
+
|
171
|
+
<?php endif; ?>
|
172
|
+
|
173
|
+
<?php if ( is_page( 'flow' ) ): ?>
|
174
|
+
|
175
|
+
<link rel="stylesheet" href="<?php echo get_template_directory_uri(); ?>/css/flow.css">
|
176
|
+
|
177
|
+
<?php endif; ?>
|
178
|
+
|
179
|
+
<?php if ( is_page( 'flow2' ) ): ?>
|
180
|
+
|
181
|
+
<link rel="stylesheet" href="<?php echo get_template_directory_uri(); ?>/css/flow2.css">
|
182
|
+
|
183
|
+
<?php endif; ?>
|
184
|
+
|
185
|
+
<?php if ( is_page( 'links' ) ): ?>
|
186
|
+
|
187
|
+
<link rel="stylesheet" href="<?php echo get_template_directory_uri(); ?>/css/links.css">
|
188
|
+
|
189
|
+
<?php endif; ?>
|
190
|
+
|
191
|
+
<?php if ( is_page( 'mitsumori' ) ): ?>
|
192
|
+
|
193
|
+
<link rel="stylesheet" href="<?php echo get_template_directory_uri(); ?>/css/mitsumori.css">
|
194
|
+
|
195
|
+
<?php endif; ?>
|
196
|
+
|
197
|
+
<?php if ( is_page( 'mitsu' ) ): ?>
|
198
|
+
|
199
|
+
<link rel="stylesheet" href="<?php echo get_template_directory_uri(); ?>/css/mitsu.css">
|
200
|
+
|
201
|
+
<?php endif; ?>
|
202
|
+
|
203
|
+
<?php if ( is_page( 'price' ) ): ?>
|
204
|
+
|
205
|
+
<link rel="stylesheet" href="<?php echo get_template_directory_uri(); ?>/css/price.css">
|
206
|
+
|
207
|
+
<?php endif; ?>
|
208
|
+
|
209
|
+
<?php if ( is_page( 'qa' ) ): ?>
|
210
|
+
|
211
|
+
<link rel="stylesheet" href="<?php echo get_template_directory_uri(); ?>/css/qa.css">
|
212
|
+
|
213
|
+
<?php endif; ?>
|
214
|
+
|
215
|
+
<?php if ( is_page( 'privacypolicy' ) ): ?>
|
216
|
+
|
217
|
+
<link rel="stylesheet" href="<?php echo get_template_directory_uri(); ?>/css/privacypolicy.css">
|
218
|
+
|
219
|
+
<?php endif; ?>
|
220
|
+
|
221
|
+
<?php if ( is_page( 'blog2' ) ): ?>
|
222
|
+
|
223
|
+
<link rel="stylesheet" href="<?php echo get_template_directory_uri(); ?>/css/blog2.css">
|
224
|
+
|
225
|
+
<?php endif; ?>
|
226
|
+
|
227
|
+
<?php if ( is_category( 'column' ) ): ?>
|
228
|
+
|
229
|
+
<link rel="stylesheet" href="<?php echo get_template_directory_uri(); ?>/css/column.css">
|
230
|
+
|
231
|
+
<?php endif; ?>
|
232
|
+
|
233
|
+
<?php if ( is_category( 'qa' ) ): ?>
|
234
|
+
|
235
|
+
<link rel="stylesheet" href="<?php echo get_template_directory_uri(); ?>/css/column.css">
|
236
|
+
|
237
|
+
<?php endif; ?>
|
238
|
+
|
239
|
+
<?php if ( is_category( 'blog' ) ): ?>
|
240
|
+
|
241
|
+
<link rel="stylesheet" href="<?php echo get_template_directory_uri(); ?>/css/column.css">
|
242
|
+
|
243
|
+
<?php endif; ?>
|
244
|
+
|
245
|
+
<?php if ( is_category( 'news' ) ): ?>
|
246
|
+
|
247
|
+
<link rel="stylesheet" href="<?php echo get_template_directory_uri(); ?>/css/column.css">
|
248
|
+
|
249
|
+
<?php endif; ?>
|
250
|
+
|
251
|
+
<?php if ( is_category( 'voice' ) ): ?>
|
252
|
+
|
253
|
+
<link rel="stylesheet" href="<?php echo get_template_directory_uri(); ?>/css/column.css">
|
254
|
+
|
255
|
+
<?php endif; ?>
|
256
|
+
|
257
|
+
<?php if ( is_single( ) ): ?>
|
258
|
+
|
259
|
+
<link rel="stylesheet" href="<?php echo get_template_directory_uri(); ?>/css/single.css">
|
260
|
+
|
261
|
+
<?php endif; ?>
|
262
|
+
|
263
|
+
<?php if ( is_archive( ) ): ?>
|
264
|
+
|
265
|
+
<link rel="stylesheet" href="<?php echo get_template_directory_uri(); ?>/css/column.css">
|
266
|
+
|
267
|
+
<?php endif; ?>
|
268
|
+
|
269
|
+
|
270
|
+
|
271
|
+
|
272
|
+
|
273
|
+
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.8.1/css/all.css"
|
274
|
+
|
275
|
+
integrity="sha384-50oBUHEmvpQ+1lW4y57PTFmhCaXp0ML5d60M1M7uH2+nqUivzIebhndOJK28anvf" crossorigin="anonymous">
|
276
|
+
|
277
|
+
<link href="https://use.fontawesome.com/releases/v5.0.6/css/all.css" rel="stylesheet">
|
278
|
+
|
279
|
+
|
280
|
+
|
281
|
+
<!-- drawer.css -->
|
282
|
+
|
283
|
+
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/drawer/3.2.2/css/drawer.min.css">
|
284
|
+
|
285
|
+
<!-- jquery & iScroll -->
|
286
|
+
|
287
|
+
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script>
|
288
|
+
|
289
|
+
<script src="https://cdnjs.cloudflare.com/ajax/libs/iScroll/5.2.0/iscroll.min.js"></script>
|
290
|
+
|
291
|
+
<!-- drawer.js -->
|
292
|
+
|
293
|
+
<script src="https://cdnjs.cloudflare.com/ajax/libs/drawer/3.2.2/js/drawer.min.js"></script>
|
294
|
+
|
295
|
+
<script src="<?php echo get_template_directory_uri(); ?>/js/script.js"></script>
|
296
|
+
|
297
|
+
<title><?php wp_title(' | ', true, 'right'); ?></title>
|
298
|
+
|
299
|
+
<?php wp_head(); ?>
|
300
|
+
|
301
|
+
</head>
|
302
|
+
|
303
|
+
<body <?php body_class(); ?>>
|
304
|
+
|
305
|
+
<header class="header">
|
306
|
+
|
307
|
+
<div class="inner">
|
308
|
+
|
309
|
+
<div class="flexbox">
|
310
|
+
|
311
|
+
<div class="header-left">
|
312
|
+
|
313
|
+
<a href="<?php echo esc_url( home_url( '/' ) ); ?>">
|
314
|
+
|
315
|
+
<div class="logo"><img src="<?php echo get_template_directory_uri(); ?>/img/common/logo.svg" alt="ロゴ"></div>
|
316
|
+
|
317
|
+
<h1>ホゲホゲ<br><span>ホゲホゲ</span></h1>
|
318
|
+
|
319
|
+
</a>
|
320
|
+
|
321
|
+
</div>
|
322
|
+
|
323
|
+
<div class="header-right">
|
324
|
+
|
325
|
+
<div class="info">
|
326
|
+
|
327
|
+
<div class="tel">
|
328
|
+
|
329
|
+
<img src="<?php echo get_template_directory_uri(); ?>/img/common/tel_icon.svg" alt="#">
|
330
|
+
|
331
|
+
<p>ホゲホゲ</p>
|
332
|
+
|
333
|
+
</div>
|
334
|
+
|
335
|
+
<p class="address">ホゲホゲ</p>
|
336
|
+
|
337
|
+
</div>
|
338
|
+
|
339
|
+
<a href="<?php echo home_url('/contact'); ?>">
|
340
|
+
|
341
|
+
ホゲホゲ<i class="far fa-envelope"></i>
|
342
|
+
|
343
|
+
</a>
|
344
|
+
|
345
|
+
</div>
|
346
|
+
|
347
|
+
</div>
|
348
|
+
|
349
|
+
</div>
|
350
|
+
|
351
|
+
<div class="nav_inner">
|
352
|
+
|
353
|
+
<nav>
|
354
|
+
|
355
|
+
<ul>
|
356
|
+
|
357
|
+
<li><a href="<?php echo esc_url( home_url( '/' ) ); ?>">ホーム</a></li>
|
358
|
+
|
359
|
+
<li><a href="<?php echo home_url('/law'); ?>">ホゲホゲ</a></li>
|
360
|
+
|
361
|
+
<li><a href="<?php echo home_url('/flow'); ?>">ホゲホゲ</a></li>
|
362
|
+
|
363
|
+
<li><a href="<?php echo home_url('/qa'); ?>">ホゲホゲ</a></li>
|
364
|
+
|
365
|
+
<li><a href="<?php echo home_url('/repair'); ?>">ホゲホゲ</a></li>
|
366
|
+
|
367
|
+
<li><a href="<?php echo home_url('/voice'); ?>">ホゲホゲ</a></li>
|
368
|
+
|
369
|
+
<li><a href="<?php echo home_url('/price'); ?>">ホゲホゲ</a></li>
|
370
|
+
|
371
|
+
</ul>
|
372
|
+
|
373
|
+
</nav>
|
374
|
+
|
375
|
+
</div>
|
376
|
+
|
377
|
+
<div class="drawer drawer--right" role="banner">
|
378
|
+
|
379
|
+
<div class="banner">
|
380
|
+
|
381
|
+
<button type="button" class="drawer-toggle drawer-hamburger">
|
382
|
+
|
383
|
+
<span class="sr-only">toggle navigation</span>
|
384
|
+
|
385
|
+
<span class="drawer-hamburger-icon"></span>
|
386
|
+
|
387
|
+
</button>
|
388
|
+
|
389
|
+
<nav class="drawer-nav" role="navigation">
|
390
|
+
|
391
|
+
<ul class="drawer-menu">
|
392
|
+
|
393
|
+
<li><a href="<?php echo esc_url( home_url( '/' ) ); ?>">ホーム</a></li>
|
394
|
+
|
395
|
+
<li><a href="<?php echo home_url('/law'); ?>">ホゲホゲ</a></li>
|
396
|
+
|
397
|
+
<li><a href="<?php echo home_url('/flow'); ?>">ホゲホゲホゲホゲ</a></li>
|
398
|
+
|
399
|
+
<li><a href="<?php echo home_url('/qa'); ?>">ホゲホゲ</a></li>
|
400
|
+
|
401
|
+
<li><a href="<?php echo home_url('/repair'); ?>">ホゲホゲ</a></li>
|
402
|
+
|
403
|
+
<li><a href="<?php echo home_url('/voice'); ?>">ホゲホゲ</a></li>
|
404
|
+
|
405
|
+
<li><a href="<?php echo home_url('/price'); ?>">ホゲホゲ</a></li>
|
406
|
+
|
407
|
+
</ul>
|
408
|
+
|
409
|
+
</nav>
|
410
|
+
|
411
|
+
</div>
|
412
|
+
|
413
|
+
</div>
|
414
|
+
|
415
|
+
</header>
|
416
|
+
|
417
|
+
```
|
418
|
+
|
419
|
+
|
420
|
+
|
421
|
+
|
422
|
+
|
133
423
|
ワードプレスでサイトを作成しているのですが、アーカイブページ(archive.php)のみ上部(ヘッダーの上)に謎の空白が自動で挿入されてしまいます。
|
134
424
|
|
135
425
|
|
1
archive.phpのコードを追加しました。
test
CHANGED
File without changes
|
test
CHANGED
@@ -1,4 +1,132 @@
|
|
1
|
+
```ここに言語を入力
|
2
|
+
|
3
|
+
<?php
|
4
|
+
|
5
|
+
/*
|
6
|
+
|
7
|
+
Template Name: アーカイブ
|
8
|
+
|
9
|
+
*/
|
10
|
+
|
11
|
+
?>
|
12
|
+
|
13
|
+
<?php get_header(); ?><div class="heading_v">
|
14
|
+
|
15
|
+
<h2>アーカイブ</h2>
|
16
|
+
|
17
|
+
</div>
|
18
|
+
|
19
|
+
<div class="breadcrumbs-inner">
|
20
|
+
|
21
|
+
<div class="breadcrumbs">
|
22
|
+
|
23
|
+
<?php
|
24
|
+
|
25
|
+
if ( function_exists( 'bcn_display' ) ) {
|
26
|
+
|
27
|
+
bcn_display();
|
28
|
+
|
29
|
+
}
|
30
|
+
|
31
|
+
?>
|
32
|
+
|
33
|
+
</div>
|
34
|
+
|
35
|
+
</div>
|
36
|
+
|
37
|
+
<div class="main">
|
38
|
+
|
39
|
+
<div class="inner">
|
40
|
+
|
41
|
+
<div class="blog">
|
42
|
+
|
43
|
+
<?php query_posts('showposts=10&paged='.$paged ); ?>
|
44
|
+
|
45
|
+
<?php if (have_posts()) :while(have_posts()) : the_post(); ?>
|
46
|
+
|
47
|
+
|
48
|
+
|
49
|
+
<div class="item">
|
50
|
+
|
51
|
+
<div class="img">
|
52
|
+
|
53
|
+
<?php the_post_thumbnail(array('90,auto'), array('class' => 'thumb')); ?>
|
54
|
+
|
55
|
+
</div>
|
56
|
+
|
57
|
+
<div class="text">
|
58
|
+
|
59
|
+
<h2 class="title"><?php echo wp_trim_words( get_the_title(), 18, '...' ); ?></h2>
|
60
|
+
|
61
|
+
<p class="date"><?php the_time( "Y.n.j" ); ?></p>
|
62
|
+
|
63
|
+
<p><a class="btn" href="<?php the_permalink( $post ); ?>">詳しく見る</a></p>
|
64
|
+
|
65
|
+
</div>
|
66
|
+
|
67
|
+
</div>
|
68
|
+
|
69
|
+
|
70
|
+
|
71
|
+
<?php endwhile; endif; ?>
|
72
|
+
|
73
|
+
<?php if(function_exists('wp_pagenavi')) { wp_pagenavi(); } ?>
|
74
|
+
|
75
|
+
<?php wp_reset_query(); ?>
|
76
|
+
|
77
|
+
</div>
|
78
|
+
|
79
|
+
<?php get_sidebar(); ?>
|
80
|
+
|
81
|
+
</div>
|
82
|
+
|
83
|
+
</div>
|
84
|
+
|
85
|
+
|
86
|
+
|
87
|
+
<div class="inquiry">
|
88
|
+
|
89
|
+
<div class="inner">
|
90
|
+
|
91
|
+
<p class="lead">お気軽にご相談くださいませ</p>
|
92
|
+
|
93
|
+
<div class="item">
|
94
|
+
|
95
|
+
<div class="info">
|
96
|
+
|
97
|
+
<div class="tel">
|
98
|
+
|
99
|
+
<img src="<?php echo get_template_directory_uri(); ?>/img/home/tel_icon2.svg" alt="#">
|
100
|
+
|
101
|
+
<p class="p1">0000-0000-0000</p>
|
102
|
+
|
103
|
+
</div>
|
104
|
+
|
105
|
+
<p class="p2">0:00〜0:00</p>
|
106
|
+
|
107
|
+
</div>
|
108
|
+
|
109
|
+
<a href="<?php echo home_url(''); ?>">
|
110
|
+
|
111
|
+
お問い合わせはこちら<i class="far fa-envelope"></i>
|
112
|
+
|
113
|
+
</a>
|
114
|
+
|
115
|
+
</div>
|
116
|
+
|
117
|
+
</div>
|
118
|
+
|
119
|
+
</div>
|
120
|
+
|
121
|
+
<div class="pagetop">
|
122
|
+
|
123
|
+
<a href="#"><i class="fas fa-chevron-up"></i></a>
|
124
|
+
|
125
|
+
</div>
|
126
|
+
|
127
|
+
<?php get_footer(); ?>
|
128
|
+
|
1
|
-
![イメージ説明](c89bf00da19c88210311fd865a690197.png)
|
129
|
+
```![イメージ説明](c89bf00da19c88210311fd865a690197.png)
|
2
130
|
|
3
131
|
|
4
132
|
|