質問編集履歴
2
header.phpを追加しました
title
CHANGED
File without changes
|
body
CHANGED
@@ -64,6 +64,151 @@
|
|
64
64
|
<?php get_footer(); ?>
|
65
65
|
```
|
66
66
|
|
67
|
+
|
68
|
+
|
69
|
+
|
70
|
+
|
71
|
+
|
72
|
+
```ここに言語を入力
|
73
|
+
<!DOCTYPE html>
|
74
|
+
<html lang="ja">
|
75
|
+
<head>
|
76
|
+
<meta charset="UTF-8">
|
77
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
78
|
+
<meta http-equiv="X-UA-Compatible" content="ie=edge">
|
79
|
+
<link rel="stylesheet" href="<?php echo get_template_directory_uri(); ?>/css/reset.css">
|
80
|
+
<link rel="stylesheet" href="<?php echo get_template_directory_uri(); ?>/css/style.css">
|
81
|
+
<?php if ( is_page( 'blog' ) ): ?>
|
82
|
+
<link rel="stylesheet" href="<?php echo get_template_directory_uri(); ?>/css/blog.css">
|
83
|
+
<?php endif; ?>
|
84
|
+
<?php if ( is_page( 'contact' ) ): ?>
|
85
|
+
<link rel="stylesheet" href="<?php echo get_template_directory_uri(); ?>/css/contact.css">
|
86
|
+
<?php endif; ?>
|
87
|
+
<?php if ( is_page( 'flow' ) ): ?>
|
88
|
+
<link rel="stylesheet" href="<?php echo get_template_directory_uri(); ?>/css/flow.css">
|
89
|
+
<?php endif; ?>
|
90
|
+
<?php if ( is_page( 'flow2' ) ): ?>
|
91
|
+
<link rel="stylesheet" href="<?php echo get_template_directory_uri(); ?>/css/flow2.css">
|
92
|
+
<?php endif; ?>
|
93
|
+
<?php if ( is_page( 'links' ) ): ?>
|
94
|
+
<link rel="stylesheet" href="<?php echo get_template_directory_uri(); ?>/css/links.css">
|
95
|
+
<?php endif; ?>
|
96
|
+
<?php if ( is_page( 'mitsumori' ) ): ?>
|
97
|
+
<link rel="stylesheet" href="<?php echo get_template_directory_uri(); ?>/css/mitsumori.css">
|
98
|
+
<?php endif; ?>
|
99
|
+
<?php if ( is_page( 'mitsu' ) ): ?>
|
100
|
+
<link rel="stylesheet" href="<?php echo get_template_directory_uri(); ?>/css/mitsu.css">
|
101
|
+
<?php endif; ?>
|
102
|
+
<?php if ( is_page( 'price' ) ): ?>
|
103
|
+
<link rel="stylesheet" href="<?php echo get_template_directory_uri(); ?>/css/price.css">
|
104
|
+
<?php endif; ?>
|
105
|
+
<?php if ( is_page( 'qa' ) ): ?>
|
106
|
+
<link rel="stylesheet" href="<?php echo get_template_directory_uri(); ?>/css/qa.css">
|
107
|
+
<?php endif; ?>
|
108
|
+
<?php if ( is_page( 'privacypolicy' ) ): ?>
|
109
|
+
<link rel="stylesheet" href="<?php echo get_template_directory_uri(); ?>/css/privacypolicy.css">
|
110
|
+
<?php endif; ?>
|
111
|
+
<?php if ( is_page( 'blog2' ) ): ?>
|
112
|
+
<link rel="stylesheet" href="<?php echo get_template_directory_uri(); ?>/css/blog2.css">
|
113
|
+
<?php endif; ?>
|
114
|
+
<?php if ( is_category( 'column' ) ): ?>
|
115
|
+
<link rel="stylesheet" href="<?php echo get_template_directory_uri(); ?>/css/column.css">
|
116
|
+
<?php endif; ?>
|
117
|
+
<?php if ( is_category( 'qa' ) ): ?>
|
118
|
+
<link rel="stylesheet" href="<?php echo get_template_directory_uri(); ?>/css/column.css">
|
119
|
+
<?php endif; ?>
|
120
|
+
<?php if ( is_category( 'blog' ) ): ?>
|
121
|
+
<link rel="stylesheet" href="<?php echo get_template_directory_uri(); ?>/css/column.css">
|
122
|
+
<?php endif; ?>
|
123
|
+
<?php if ( is_category( 'news' ) ): ?>
|
124
|
+
<link rel="stylesheet" href="<?php echo get_template_directory_uri(); ?>/css/column.css">
|
125
|
+
<?php endif; ?>
|
126
|
+
<?php if ( is_category( 'voice' ) ): ?>
|
127
|
+
<link rel="stylesheet" href="<?php echo get_template_directory_uri(); ?>/css/column.css">
|
128
|
+
<?php endif; ?>
|
129
|
+
<?php if ( is_single( ) ): ?>
|
130
|
+
<link rel="stylesheet" href="<?php echo get_template_directory_uri(); ?>/css/single.css">
|
131
|
+
<?php endif; ?>
|
132
|
+
<?php if ( is_archive( ) ): ?>
|
133
|
+
<link rel="stylesheet" href="<?php echo get_template_directory_uri(); ?>/css/column.css">
|
134
|
+
<?php endif; ?>
|
135
|
+
|
136
|
+
|
137
|
+
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.8.1/css/all.css"
|
138
|
+
integrity="sha384-50oBUHEmvpQ+1lW4y57PTFmhCaXp0ML5d60M1M7uH2+nqUivzIebhndOJK28anvf" crossorigin="anonymous">
|
139
|
+
<link href="https://use.fontawesome.com/releases/v5.0.6/css/all.css" rel="stylesheet">
|
140
|
+
|
141
|
+
<!-- drawer.css -->
|
142
|
+
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/drawer/3.2.2/css/drawer.min.css">
|
143
|
+
<!-- jquery & iScroll -->
|
144
|
+
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script>
|
145
|
+
<script src="https://cdnjs.cloudflare.com/ajax/libs/iScroll/5.2.0/iscroll.min.js"></script>
|
146
|
+
<!-- drawer.js -->
|
147
|
+
<script src="https://cdnjs.cloudflare.com/ajax/libs/drawer/3.2.2/js/drawer.min.js"></script>
|
148
|
+
<script src="<?php echo get_template_directory_uri(); ?>/js/script.js"></script>
|
149
|
+
<title><?php wp_title(' | ', true, 'right'); ?></title>
|
150
|
+
<?php wp_head(); ?>
|
151
|
+
</head>
|
152
|
+
<body <?php body_class(); ?>>
|
153
|
+
<header class="header">
|
154
|
+
<div class="inner">
|
155
|
+
<div class="flexbox">
|
156
|
+
<div class="header-left">
|
157
|
+
<a href="<?php echo esc_url( home_url( '/' ) ); ?>">
|
158
|
+
<div class="logo"><img src="<?php echo get_template_directory_uri(); ?>/img/common/logo.svg" alt="ロゴ"></div>
|
159
|
+
<h1>ホゲホゲ<br><span>ホゲホゲ</span></h1>
|
160
|
+
</a>
|
161
|
+
</div>
|
162
|
+
<div class="header-right">
|
163
|
+
<div class="info">
|
164
|
+
<div class="tel">
|
165
|
+
<img src="<?php echo get_template_directory_uri(); ?>/img/common/tel_icon.svg" alt="#">
|
166
|
+
<p>ホゲホゲ</p>
|
167
|
+
</div>
|
168
|
+
<p class="address">ホゲホゲ</p>
|
169
|
+
</div>
|
170
|
+
<a href="<?php echo home_url('/contact'); ?>">
|
171
|
+
ホゲホゲ<i class="far fa-envelope"></i>
|
172
|
+
</a>
|
173
|
+
</div>
|
174
|
+
</div>
|
175
|
+
</div>
|
176
|
+
<div class="nav_inner">
|
177
|
+
<nav>
|
178
|
+
<ul>
|
179
|
+
<li><a href="<?php echo esc_url( home_url( '/' ) ); ?>">ホーム</a></li>
|
180
|
+
<li><a href="<?php echo home_url('/law'); ?>">ホゲホゲ</a></li>
|
181
|
+
<li><a href="<?php echo home_url('/flow'); ?>">ホゲホゲ</a></li>
|
182
|
+
<li><a href="<?php echo home_url('/qa'); ?>">ホゲホゲ</a></li>
|
183
|
+
<li><a href="<?php echo home_url('/repair'); ?>">ホゲホゲ</a></li>
|
184
|
+
<li><a href="<?php echo home_url('/voice'); ?>">ホゲホゲ</a></li>
|
185
|
+
<li><a href="<?php echo home_url('/price'); ?>">ホゲホゲ</a></li>
|
186
|
+
</ul>
|
187
|
+
</nav>
|
188
|
+
</div>
|
189
|
+
<div class="drawer drawer--right" role="banner">
|
190
|
+
<div class="banner">
|
191
|
+
<button type="button" class="drawer-toggle drawer-hamburger">
|
192
|
+
<span class="sr-only">toggle navigation</span>
|
193
|
+
<span class="drawer-hamburger-icon"></span>
|
194
|
+
</button>
|
195
|
+
<nav class="drawer-nav" role="navigation">
|
196
|
+
<ul class="drawer-menu">
|
197
|
+
<li><a href="<?php echo esc_url( home_url( '/' ) ); ?>">ホーム</a></li>
|
198
|
+
<li><a href="<?php echo home_url('/law'); ?>">ホゲホゲ</a></li>
|
199
|
+
<li><a href="<?php echo home_url('/flow'); ?>">ホゲホゲホゲホゲ</a></li>
|
200
|
+
<li><a href="<?php echo home_url('/qa'); ?>">ホゲホゲ</a></li>
|
201
|
+
<li><a href="<?php echo home_url('/repair'); ?>">ホゲホゲ</a></li>
|
202
|
+
<li><a href="<?php echo home_url('/voice'); ?>">ホゲホゲ</a></li>
|
203
|
+
<li><a href="<?php echo home_url('/price'); ?>">ホゲホゲ</a></li>
|
204
|
+
</ul>
|
205
|
+
</nav>
|
206
|
+
</div>
|
207
|
+
</div>
|
208
|
+
</header>
|
209
|
+
```
|
210
|
+
|
211
|
+
|
67
212
|
ワードプレスでサイトを作成しているのですが、アーカイブページ(archive.php)のみ上部(ヘッダーの上)に謎の空白が自動で挿入されてしまいます。
|
68
213
|
|
69
214
|
これを取り除く方法はございませんでしょうか?
|
1
archive.phpのコードを追加しました。
title
CHANGED
File without changes
|
body
CHANGED
@@ -1,5 +1,69 @@
|
|
1
|
+
```ここに言語を入力
|
2
|
+
<?php
|
3
|
+
/*
|
4
|
+
Template Name: アーカイブ
|
5
|
+
*/
|
6
|
+
?>
|
7
|
+
<?php get_header(); ?><div class="heading_v">
|
8
|
+
<h2>アーカイブ</h2>
|
9
|
+
</div>
|
10
|
+
<div class="breadcrumbs-inner">
|
11
|
+
<div class="breadcrumbs">
|
12
|
+
<?php
|
1
|
-
|
13
|
+
if ( function_exists( 'bcn_display' ) ) {
|
14
|
+
bcn_display();
|
15
|
+
}
|
16
|
+
?>
|
17
|
+
</div>
|
18
|
+
</div>
|
19
|
+
<div class="main">
|
20
|
+
<div class="inner">
|
21
|
+
<div class="blog">
|
22
|
+
<?php query_posts('showposts=10&paged='.$paged ); ?>
|
23
|
+
<?php if (have_posts()) :while(have_posts()) : the_post(); ?>
|
24
|
+
|
25
|
+
<div class="item">
|
26
|
+
<div class="img">
|
27
|
+
<?php the_post_thumbnail(array('90,auto'), array('class' => 'thumb')); ?>
|
28
|
+
</div>
|
29
|
+
<div class="text">
|
30
|
+
<h2 class="title"><?php echo wp_trim_words( get_the_title(), 18, '...' ); ?></h2>
|
31
|
+
<p class="date"><?php the_time( "Y.n.j" ); ?></p>
|
32
|
+
<p><a class="btn" href="<?php the_permalink( $post ); ?>">詳しく見る</a></p>
|
33
|
+
</div>
|
34
|
+
</div>
|
35
|
+
|
36
|
+
<?php endwhile; endif; ?>
|
37
|
+
<?php if(function_exists('wp_pagenavi')) { wp_pagenavi(); } ?>
|
38
|
+
<?php wp_reset_query(); ?>
|
39
|
+
</div>
|
40
|
+
<?php get_sidebar(); ?>
|
41
|
+
</div>
|
42
|
+
</div>
|
2
43
|
|
44
|
+
<div class="inquiry">
|
45
|
+
<div class="inner">
|
46
|
+
<p class="lead">お気軽にご相談くださいませ</p>
|
47
|
+
<div class="item">
|
48
|
+
<div class="info">
|
49
|
+
<div class="tel">
|
50
|
+
<img src="<?php echo get_template_directory_uri(); ?>/img/home/tel_icon2.svg" alt="#">
|
51
|
+
<p class="p1">0000-0000-0000</p>
|
52
|
+
</div>
|
53
|
+
<p class="p2">0:00〜0:00</p>
|
54
|
+
</div>
|
55
|
+
<a href="<?php echo home_url(''); ?>">
|
56
|
+
お問い合わせはこちら<i class="far fa-envelope"></i>
|
57
|
+
</a>
|
58
|
+
</div>
|
59
|
+
</div>
|
60
|
+
</div>
|
61
|
+
<div class="pagetop">
|
62
|
+
<a href="#"><i class="fas fa-chevron-up"></i></a>
|
63
|
+
</div>
|
64
|
+
<?php get_footer(); ?>
|
65
|
+
```
|
66
|
+
|
3
67
|
ワードプレスでサイトを作成しているのですが、アーカイブページ(archive.php)のみ上部(ヘッダーの上)に謎の空白が自動で挿入されてしまいます。
|
4
68
|
|
5
69
|
これを取り除く方法はございませんでしょうか?
|