質問編集履歴

4

id="post"をclass="post"に修正しました。

2019/08/28 05:39

投稿

S_fujii
S_fujii

スコア8

test CHANGED
File without changes
test CHANGED
@@ -72,33 +72,13 @@
72
72
 
73
73
  <nav>
74
74
 
75
- <div class="menu-mymenu-container">
76
-
77
- <ul id="menu-mymenu" class="menu">
78
-
79
- <li id="menu-item-102"
80
-
81
- class="menu-item menu-item-type-custom menu-item-object-custom current-menu-item current_page_item menu-item-102">
82
-
83
- <a href="/wordpress" aria-current="page">ホーム</a></li>
84
-
85
- <li id="menu-item-100" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-100"><a
86
-
87
- href="http://localhost/wordpress/%e3%83%97%e3%83%ad%e3%83%95%e3%82%a3%e3%83%bc%e3%83%ab/">プロフィール</a>
88
-
89
- </li>
90
-
91
- <li id="menu-item-101" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-101"><a
92
-
93
- href="http://localhost/wordpress/%e3%81%93%e3%81%ae%e3%82%b5%e3%82%a4%e3%83%88%e3%81%ab%e3%81%a4%e3%81%84%e3%81%a6/">このサイトについて</a>
94
-
95
- </li>
96
-
97
- </ul>
98
-
99
- </div>
100
-
101
- </nav>
75
+ <div class="menu-mymenu-container"><ul id="menu-mymenu" class="menu"><li id="menu-item-102" class="menu-item menu-item-type-custom menu-item-object-custom current-menu-item current_page_item menu-item-102"><a href="/wordpress" aria-current="page">ホーム</a></li>
76
+
77
+ <li id="menu-item-100" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-100"><a href="http://localhost/wordpress/%e3%83%97%e3%83%ad%e3%83%95%e3%82%a3%e3%83%bc%e3%83%ab/">プロフィール</a></li>
78
+
79
+ <li id="menu-item-101" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-101"><a href="http://localhost/wordpress/%e3%81%93%e3%81%ae%e3%82%b5%e3%82%a4%e3%83%88%e3%81%ab%e3%81%a4%e3%81%84%e3%81%a6/">このサイトについて</a></li>
80
+
81
+ </ul></div> </nav>
102
82
 
103
83
  </div>
104
84
 
@@ -114,45 +94,107 @@
114
94
 
115
95
  <div id="posts">
116
96
 
117
-
118
-
119
-
120
-
97
+
98
+
99
+
100
+
121
- <div id="post">
101
+ <div class="post">
122
102
 
123
103
  <div class="post-header">
124
104
 
125
105
  <h2> <a href="http://localhost/wordpress/2019-08-22/115/">tst</a> </h2>
126
106
 
127
- <div class="post-meta">2019年8月22日【<a
128
-
129
- href="http://localhost/wordpress/category/%e6%9c%aa%e5%88%86%e9%a1%9e/" rel="category tag">未分類</a>】
107
+ <div class="post-meta">2019年8月22日【<a href="http://localhost/wordpress/category/%e6%9c%aa%e5%88%86%e9%a1%9e/" rel="category tag">未分類</a>】</div>
108
+
109
+ </div>
110
+
111
+ <div class="post-content">
112
+
113
+ <div class="post-image">
114
+
115
+
116
+
117
+ <img src="http://localhost/wordpress/wp-content/themes/MyTheme/img/noimage.png" width="100" height="100">
118
+
119
+
120
+
121
+ </div>
122
+
123
+ <div class="post-body">
124
+
125
+ <p>tst tst tst tst tst tst tst tst tst tst tst tst tst tst &hellip; <a href="http://localhost/wordpress/2019-08-22/115/" class="more-link">続きを読む <span class="screen-reader-text">tst</span></a></p>
130
126
 
131
127
  </div>
132
128
 
133
129
  </div>
134
130
 
131
+ </div><!-- /post -->
132
+
133
+
134
+
135
+
136
+
137
+ <div class="post">
138
+
139
+ <div class="post-header">
140
+
141
+ <h2> <a href="http://localhost/wordpress/2019-08-22/113/">TESTS</a> </h2>
142
+
143
+ <div class="post-meta">2019年8月22日【<a href="http://localhost/wordpress/category/%e6%9c%aa%e5%88%86%e9%a1%9e/" rel="category tag">未分類</a>】</div>
144
+
145
+ </div>
146
+
135
147
  <div class="post-content">
136
148
 
137
149
  <div class="post-image">
138
150
 
139
-
140
-
141
- <img src="http://localhost/wordpress/wp-content/themes/MyTheme/img/noimage.png" width="100"
142
-
143
- height="100">
144
-
145
-
151
+
152
+
153
+ <img src="http://localhost/wordpress/wp-content/themes/MyTheme/img/noimage.png" width="100" height="100">
154
+
155
+
156
+
157
+ </div>
158
+
159
+ <div class="post-body">
160
+
161
+ <p>TEST TEST TEST TEST TEST TEST TEST TEST TEST TEST TEST &hellip; <a href="http://localhost/wordpress/2019-08-22/113/" class="more-link">続きを読む <span class="screen-reader-text">TESTS</span></a></p>
146
162
 
147
163
  </div>
148
164
 
165
+ </div>
166
+
167
+ </div><!-- /post -->
168
+
169
+
170
+
171
+
172
+
173
+ <div class="post">
174
+
175
+ <div class="post-header">
176
+
177
+ <h2> <a href="http://localhost/wordpress/2019-08-22/111/">これもテストです</a> </h2>
178
+
179
+ <div class="post-meta">2019年8月22日【<a href="http://localhost/wordpress/category/%e6%9c%aa%e5%88%86%e9%a1%9e/" rel="category tag">未分類</a>】</div>
180
+
181
+ </div>
182
+
183
+ <div class="post-content">
184
+
185
+ <div class="post-image">
186
+
187
+
188
+
189
+ <img src="http://localhost/wordpress/wp-content/themes/MyTheme/img/noimage.png" width="100" height="100">
190
+
191
+
192
+
193
+ </div>
194
+
149
195
  <div class="post-body">
150
196
 
151
- <p>tst tst tst tst tst tst tst tst tst tst tst tst tst tst &hellip; <a
152
-
153
- href="http://localhost/wordpress/2019-08-22/115/" class="more-link">続きを読む <span
154
-
155
- class="screen-reader-text">tst</span></a></p>
197
+ <p>テスト テスト テスト テスト テスト テスト テスト テスト テスト テスト テスト テスト テスト テスト &hellip; <a href="http://localhost/wordpress/2019-08-22/111/" class="more-link">続きを読む <span class="screen-reader-text">これもテストです</span></a></p>
156
198
 
157
199
  </div>
158
200
 
@@ -160,187 +202,77 @@
160
202
 
161
203
  </div><!-- /post -->
162
204
 
163
-
164
-
165
-
166
-
167
- <div id="post">
205
+
168
-
169
- <div class="post-header">
206
+
170
-
171
- <h2> <a href="http://localhost/wordpress/2019-08-22/113/">TESTS</a> </h2>
207
+
172
-
173
- <div class="post-meta">2019年8月22日【<a
174
-
175
- href="http://localhost/wordpress/category/%e6%9c%aa%e5%88%86%e9%a1%9e/" rel="category tag">未分類</a>】
176
-
177
- </div>
178
-
179
- </div>
180
-
181
- <div class="post-content">
182
-
183
- <div class="post-image">
184
-
185
-
186
-
187
- <img src="http://localhost/wordpress/wp-content/themes/MyTheme/img/noimage.png" width="100"
188
-
189
- height="100">
190
-
191
-
192
-
193
- </div>
194
-
195
- <div class="post-body">
196
-
197
- <p>TEST TEST TEST TEST TEST TEST TEST TEST TEST TEST TEST &hellip; <a
198
-
199
- href="http://localhost/wordpress/2019-08-22/113/" class="more-link">続きを読む <span
200
-
201
- class="screen-reader-text">TESTS</span></a></p>
202
-
203
- </div>
204
-
205
- </div>
206
-
207
- </div><!-- /post -->
208
-
209
-
210
-
211
-
212
-
213
- <div id="post">
214
-
215
- <div class="post-header">
216
-
217
- <h2> <a href="http://localhost/wordpress/2019-08-22/111/">これもテストです</a> </h2>
218
-
219
- <div class="post-meta">2019年8月22日【<a
220
-
221
- href="http://localhost/wordpress/category/%e6%9c%aa%e5%88%86%e9%a1%9e/" rel="category tag">未分類</a>】
222
-
223
- </div>
224
-
225
- </div>
226
-
227
- <div class="post-content">
228
-
229
- <div class="post-image">
230
-
231
-
232
-
233
- <img src="http://localhost/wordpress/wp-content/themes/MyTheme/img/noimage.png" width="100"
234
-
235
- height="100">
236
-
237
-
238
-
239
- </div>
240
-
241
- <div class="post-body">
242
-
243
- <p>テスト テスト テスト テスト テスト テスト テスト テスト テスト テスト テスト テスト テスト テスト &hellip; <a
244
-
245
- href="http://localhost/wordpress/2019-08-22/111/" class="more-link">続きを読む <span
246
-
247
- class="screen-reader-text">これもテストです</span></a></p>
248
-
249
- </div>
250
-
251
- </div>
252
-
253
- </div><!-- /post -->
254
-
255
-
256
-
257
-
258
208
 
259
209
  </div><!-- /posts -->
260
210
 
261
-
262
-
263
- <nav class="navigation pagination" role="navigation">
264
-
265
- <h2 class="screen-reader-text">投稿ナビゲーション</h2>
266
-
267
- <div class="nav-links"><span aria-current='page' class='page-numbers current'>1</span>
268
-
269
- <a class='page-numbers' href='http://localhost/wordpress/page/2/'>2</a>
270
-
271
- <a class="next page-numbers" href="http://localhost/wordpress/page/2/">次へ</a></div>
272
-
273
- </nav>
274
-
275
- </div>
276
-
277
- <aside id="recent-posts-4" class="widget widget_recent_entries">
278
-
279
- <h2 class="widget-title">最近の投稿</h2>
280
-
281
- <ul>
282
-
283
- <li>
284
-
285
- <a href="http://localhost/wordpress/2019-08-22/115/">tst</a>
286
-
287
- </li>
288
-
289
- <li>
290
-
291
- <a href="http://localhost/wordpress/2019-08-22/113/">TESTS</a>
292
-
293
- </li>
294
-
295
- <li>
296
-
297
- <a href="http://localhost/wordpress/2019-08-22/111/">これもテストです</a>
298
-
299
- </li>
300
-
301
- <li>
302
-
303
- <a href="http://localhost/wordpress/2019-08-21/109/">koreha test desu</a>
304
-
305
- </li>
306
-
307
- <li>
308
-
309
- <a href="http://localhost/wordpress/2019-08-21/107/">TEST</a>
310
-
311
- </li>
312
-
313
- </ul>
314
-
315
- </aside>
316
-
317
- <aside id="archives-3" class="widget widget_archive">
318
-
319
- <h2 class="widget-title">アーカイブ</h2>
320
-
321
- <ul>
322
-
323
- <li><a href='http://localhost/wordpress/2019/08/'>2019年8月</a></li>
324
-
325
- </ul>
326
-
327
- </aside>
328
-
329
- <aside id="categories-3" class="widget widget_categories">
330
-
331
- <h2 class="widget-title">カテゴリー</h2>
332
-
333
- <ul>
334
-
335
- <li class="cat-item cat-item-1"><a
336
-
337
- href="http://localhost/wordpress/category/%e6%9c%aa%e5%88%86%e9%a1%9e/">未分類</a> (6)
338
-
339
- </li>
340
-
341
- </ul>
342
-
343
- </aside>
211
+
212
+
213
+ <nav class="navigation pagination" role="navigation">
214
+
215
+ <h2 class="screen-reader-text">投稿ナビゲーション</h2>
216
+
217
+ <div class="nav-links"><span aria-current='page' class='page-numbers current'>1</span>
218
+
219
+ <a class='page-numbers' href='http://localhost/wordpress/page/2/'>2</a>
220
+
221
+ <a class="next page-numbers" href="http://localhost/wordpress/page/2/">次へ</a></div>
222
+
223
+ </nav> </div>
224
+
225
+ <div id="sidebar">
226
+
227
+ <aside id="recent-posts-4" class="widget widget_recent_entries"> <h2 class="widget-title">最近の投稿</h2> <ul>
228
+
229
+ <li>
230
+
231
+ <a href="http://localhost/wordpress/2019-08-22/115/">tst</a>
232
+
233
+ </li>
234
+
235
+ <li>
236
+
237
+ <a href="http://localhost/wordpress/2019-08-22/113/">TESTS</a>
238
+
239
+ </li>
240
+
241
+ <li>
242
+
243
+ <a href="http://localhost/wordpress/2019-08-22/111/">これもテストです</a>
244
+
245
+ </li>
246
+
247
+ <li>
248
+
249
+ <a href="http://localhost/wordpress/2019-08-21/109/">koreha test desu</a>
250
+
251
+ </li>
252
+
253
+ <li>
254
+
255
+ <a href="http://localhost/wordpress/2019-08-21/107/">TEST</a>
256
+
257
+ </li>
258
+
259
+ </ul>
260
+
261
+ </aside><aside id="archives-3" class="widget widget_archive"><h2 class="widget-title">アーカイブ</h2> <ul>
262
+
263
+ <li><a href='http://localhost/wordpress/2019/08/'>2019年8月</a></li>
264
+
265
+ </ul>
266
+
267
+ </aside><aside id="categories-3" class="widget widget_categories"><h2 class="widget-title">カテゴリー</h2> <ul>
268
+
269
+ <li class="cat-item cat-item-1"><a href="http://localhost/wordpress/category/%e6%9c%aa%e5%88%86%e9%a1%9e/">未分類</a> (6)
270
+
271
+ </li>
272
+
273
+ </ul>
274
+
275
+ </aside> </div>
344
276
 
345
277
  </div>
346
278
 
@@ -354,6 +286,8 @@
354
286
 
355
287
  </footer>
356
288
 
289
+
290
+
357
291
  ```
358
292
 
359
293
 
@@ -474,7 +408,7 @@
474
408
 
475
409
  }
476
410
 
477
- #post {
411
+ .post {
478
412
 
479
413
  margin-bottom: 30px;
480
414
 
@@ -528,12 +462,6 @@
528
462
 
529
463
  .navigation {
530
464
 
531
- /* overflow: hidden; */
532
-
533
- /* padding: 10px 0; */
534
-
535
- /* margin-bottom: 15px; */
536
-
537
465
  width: 635px;
538
466
 
539
467
  }

3

新しい不具合を提示するために画像を追加しました。

2019/08/28 05:39

投稿

S_fujii
S_fujii

スコア8

test CHANGED
File without changes
test CHANGED
@@ -28,6 +28,28 @@
28
28
 
29
29
 
30
30
 
31
+ 【追記】
32
+
33
+ アドバイスを参考にサイドバー部分を`<div id="sidebar>`で囲むことで一瞬正しい表示になるのですが、スクロール等をするとレイアウトが崩れるという現象が発生しています。
34
+
35
+
36
+
37
+ ![イメージ説明](a0404a7122081705aec4ad27c00b6bad.png)
38
+
39
+
40
+
41
+ ↓画面をスクロールすると
42
+
43
+
44
+
45
+ ![イメージ説明](bc3ac4574dd8a0ca9c848fbc5375a9bc.png)
46
+
47
+
48
+
49
+ となってしまいます……。
50
+
51
+
52
+
31
53
  ### 該当のソースコード
32
54
 
33
55
 

2

phpを、出力したhtmlに変更しました。

2019/08/28 05:18

投稿

S_fujii
S_fujii

スコア8

test CHANGED
File without changes
test CHANGED
@@ -32,23 +32,49 @@
32
32
 
33
33
 
34
34
 
35
+ 【追記】
36
+
37
+ phpではなく出力されたhtmlを提示した方が回答しやすいとの修正依頼を頂きましたので、修正させていただきました。<body>~</body>間が欲しいとのことだったのですが、文字数制限で~</footer>まで記載させていただきます。
38
+
39
+
40
+
35
41
  ```html
36
42
 
37
- <?php get_header(); ?>
38
-
39
-
40
-
41
- <body <?php body_class(); ?>>
43
+ <body class="home blog logged-in admin-bar no-customize-support wp-embed-responsive">
42
44
 
43
45
  <header>
44
46
 
45
47
  <div class="container">
46
48
 
47
- <h1><a href="<?php echo home_url('/'); ?>"><?php bloginfo('name'); ?></a></h1>
49
+ <h1><a href="http://localhost/wordpress/">MouyanのカレーなるゲームBLOG</a></h1>
48
50
 
49
51
  <nav>
50
52
 
53
+ <div class="menu-mymenu-container">
54
+
55
+ <ul id="menu-mymenu" class="menu">
56
+
51
- <?php wp_nav_menu(); ?>
57
+ <li id="menu-item-102"
58
+
59
+ class="menu-item menu-item-type-custom menu-item-object-custom current-menu-item current_page_item menu-item-102">
60
+
61
+ <a href="/wordpress" aria-current="page">ホーム</a></li>
62
+
63
+ <li id="menu-item-100" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-100"><a
64
+
65
+ href="http://localhost/wordpress/%e3%83%97%e3%83%ad%e3%83%95%e3%82%a3%e3%83%bc%e3%83%ab/">プロフィール</a>
66
+
67
+ </li>
68
+
69
+ <li id="menu-item-101" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-101"><a
70
+
71
+ href="http://localhost/wordpress/%e3%81%93%e3%81%ae%e3%82%b5%e3%82%a4%e3%83%88%e3%81%ab%e3%81%a4%e3%81%84%e3%81%a6/">このサイトについて</a>
72
+
73
+ </li>
74
+
75
+ </ul>
76
+
77
+ </div>
52
78
 
53
79
  </nav>
54
80
 
@@ -66,27 +92,21 @@
66
92
 
67
93
  <div id="posts">
68
94
 
69
-
70
-
71
- <?php
95
+
72
-
73
- if ( have_posts() ) : // もし投稿が1件以上あったら
96
+
74
-
75
- while ( have_posts() ) : // 投稿の表示条件を満たす間は繰り返す
97
+
76
-
77
- the_post(); // データ1件分を取り出して渡す
78
-
79
- ?>
80
-
81
-
82
98
 
83
99
  <div id="post">
84
100
 
85
101
  <div class="post-header">
86
102
 
87
- <h2> <a href="<?php the_permalink(); ?>"><?php the_title(); ?></a> </h2>
103
+ <h2> <a href="http://localhost/wordpress/2019-08-22/115/">tst</a> </h2>
104
+
88
-
105
+ <div class="post-meta">2019年8月22日【<a
106
+
89
- <div class="post-meta"><?php echo get_the_date(); ?>【<?php the_category(', '); ?></div>
107
+ href="http://localhost/wordpress/category/%e6%9c%aa%e5%88%86%e9%a1%9e/" rel="category tag">未分類</a>
108
+
109
+ </div>
90
110
 
91
111
  </div>
92
112
 
@@ -94,25 +114,23 @@
94
114
 
95
115
  <div class="post-image">
96
116
 
97
-
98
-
99
- <?php if( has_post_thumbnail() ): // サムネイル画像があるか確認する ?>
117
+
100
-
101
- <?php the_post_thumbnail( array(100,100) ); //サムネイル画像があれば ?>
118
+
102
-
103
- <?php else: // サムネイル画像がなければ ?>
104
-
105
- <img src="<?php echo esc_url( get_theme_file_uri ( 'img/noimage.png' ) ) ?>" width="100" height="100">
119
+ <img src="http://localhost/wordpress/wp-content/themes/MyTheme/img/noimage.png" width="100"
106
-
120
+
107
- <?php endif; // 条件分岐終了 ?>
121
+ height="100">
108
-
109
-
110
-
122
+
123
+
124
+
111
- </div>
125
+ </div>
112
126
 
113
127
  <div class="post-body">
114
128
 
115
- <?php the_excerpt(); ?>
129
+ <p>tst tst tst tst tst tst tst tst tst tst tst tst tst tst &hellip; <a
130
+
131
+ href="http://localhost/wordpress/2019-08-22/115/" class="more-link">続きを読む <span
132
+
133
+ class="screen-reader-text">tst</span></a></p>
116
134
 
117
135
  </div>
118
136
 
@@ -120,37 +138,187 @@
120
138
 
121
139
  </div><!-- /post -->
122
140
 
123
-
124
-
125
- <?php
141
+
126
-
142
+
143
+
144
+
127
- endwhile; // 投稿ループ終了
145
+ <div id="post">
146
+
128
-
147
+ <div class="post-header">
148
+
149
+ <h2> <a href="http://localhost/wordpress/2019-08-22/113/">TESTS</a> </h2>
150
+
151
+ <div class="post-meta">2019年8月22日【<a
152
+
153
+ href="http://localhost/wordpress/category/%e6%9c%aa%e5%88%86%e9%a1%9e/" rel="category tag">未分類</a>】
154
+
155
+ </div>
156
+
157
+ </div>
158
+
159
+ <div class="post-content">
160
+
161
+ <div class="post-image">
162
+
163
+
164
+
165
+ <img src="http://localhost/wordpress/wp-content/themes/MyTheme/img/noimage.png" width="100"
166
+
167
+ height="100">
168
+
169
+
170
+
171
+ </div>
172
+
129
- else : // もし表示すべき投稿がなかったら
173
+ <div class="post-body">
174
+
130
-
175
+ <p>TEST TEST TEST TEST TEST TEST TEST TEST TEST TEST TEST &hellip; <a
176
+
177
+ href="http://localhost/wordpress/2019-08-22/113/" class="more-link">続きを読む <span
178
+
179
+ class="screen-reader-text">TESTS</span></a></p>
180
+
131
- ?>
181
+ </div>
182
+
132
-
183
+ </div>
133
-
134
-
184
+
135
- <p>この記事は存在しません。</p>
185
+ </div><!-- /post -->
136
-
137
-
138
-
186
+
187
+
188
+
189
+
190
+
139
- <?php
191
+ <div id="post">
192
+
140
-
193
+ <div class="post-header">
194
+
195
+ <h2> <a href="http://localhost/wordpress/2019-08-22/111/">これもテストです</a> </h2>
196
+
197
+ <div class="post-meta">2019年8月22日【<a
198
+
199
+ href="http://localhost/wordpress/category/%e6%9c%aa%e5%88%86%e9%a1%9e/" rel="category tag">未分類</a>】
200
+
141
- endif; // 条件分岐終了
201
+ </div>
142
-
202
+
143
- ?>
203
+ </div>
204
+
144
-
205
+ <div class="post-content">
206
+
145
-
207
+ <div class="post-image">
208
+
209
+
210
+
211
+ <img src="http://localhost/wordpress/wp-content/themes/MyTheme/img/noimage.png" width="100"
212
+
213
+ height="100">
214
+
215
+
216
+
217
+ </div>
218
+
219
+ <div class="post-body">
220
+
221
+ <p>テスト テスト テスト テスト テスト テスト テスト テスト テスト テスト テスト テスト テスト テスト &hellip; <a
222
+
223
+ href="http://localhost/wordpress/2019-08-22/111/" class="more-link">続きを読む <span
224
+
225
+ class="screen-reader-text">これもテストです</span></a></p>
226
+
227
+ </div>
228
+
229
+ </div>
230
+
231
+ </div><!-- /post -->
232
+
233
+
234
+
235
+
146
236
 
147
237
  </div><!-- /posts -->
148
238
 
239
+
240
+
149
- <?php the_posts_pagination(); ?>
241
+ <nav class="navigation pagination" role="navigation">
242
+
243
+ <h2 class="screen-reader-text">投稿ナビゲーション</h2>
244
+
245
+ <div class="nav-links"><span aria-current='page' class='page-numbers current'>1</span>
246
+
247
+ <a class='page-numbers' href='http://localhost/wordpress/page/2/'>2</a>
248
+
249
+ <a class="next page-numbers" href="http://localhost/wordpress/page/2/">次へ</a></div>
250
+
251
+ </nav>
150
252
 
151
253
  </div>
152
254
 
255
+ <aside id="recent-posts-4" class="widget widget_recent_entries">
256
+
257
+ <h2 class="widget-title">最近の投稿</h2>
258
+
259
+ <ul>
260
+
261
+ <li>
262
+
263
+ <a href="http://localhost/wordpress/2019-08-22/115/">tst</a>
264
+
265
+ </li>
266
+
267
+ <li>
268
+
269
+ <a href="http://localhost/wordpress/2019-08-22/113/">TESTS</a>
270
+
271
+ </li>
272
+
273
+ <li>
274
+
275
+ <a href="http://localhost/wordpress/2019-08-22/111/">これもテストです</a>
276
+
277
+ </li>
278
+
279
+ <li>
280
+
281
+ <a href="http://localhost/wordpress/2019-08-21/109/">koreha test desu</a>
282
+
283
+ </li>
284
+
285
+ <li>
286
+
287
+ <a href="http://localhost/wordpress/2019-08-21/107/">TEST</a>
288
+
289
+ </li>
290
+
291
+ </ul>
292
+
153
- <?php dynamic_sidebar(); ?>
293
+ </aside>
294
+
295
+ <aside id="archives-3" class="widget widget_archive">
296
+
297
+ <h2 class="widget-title">アーカイブ</h2>
298
+
299
+ <ul>
300
+
301
+ <li><a href='http://localhost/wordpress/2019/08/'>2019年8月</a></li>
302
+
303
+ </ul>
304
+
305
+ </aside>
306
+
307
+ <aside id="categories-3" class="widget widget_categories">
308
+
309
+ <h2 class="widget-title">カテゴリー</h2>
310
+
311
+ <ul>
312
+
313
+ <li class="cat-item cat-item-1"><a
314
+
315
+ href="http://localhost/wordpress/category/%e6%9c%aa%e5%88%86%e9%a1%9e/">未分類</a> (6)
316
+
317
+ </li>
318
+
319
+ </ul>
320
+
321
+ </aside>
154
322
 
155
323
  </div>
156
324
 
@@ -158,7 +326,11 @@
158
326
 
159
327
 
160
328
 
329
+ <footer>
330
+
331
+ <div class="container">© 2019 Mouyan. All Rights Reserved.</div>
332
+
161
- <?php get_footer() ?>
333
+ </footer>
162
334
 
163
335
  ```
164
336
 
@@ -416,84 +588,6 @@
416
588
 
417
589
 
418
590
 
419
- 【追記】
420
-
421
- サイドバーのhtmlが欲しいとの修正依頼を頂きましたので、追記させていただきます。
422
-
423
- ```html
424
-
425
- <aside id="recent-posts-4" class="widget widget_recent_entries">
426
-
427
- <h2 class="widget-title">最近の投稿</h2>
428
-
429
- <ul>
430
-
431
- <li>
432
-
433
- <a href="http://localhost/wordpress/2019-08-22/115/">tst</a>
434
-
435
- </li>
436
-
437
- <li>
438
-
439
- <a href="http://localhost/wordpress/2019-08-22/113/">TESTS</a>
440
-
441
- </li>
442
-
443
- <li>
444
-
445
- <a href="http://localhost/wordpress/2019-08-22/111/">これもテストです</a>
446
-
447
- </li>
448
-
449
- <li>
450
-
451
- <a href="http://localhost/wordpress/2019-08-21/109/">koreha test desu</a>
452
-
453
- </li>
454
-
455
- <li>
456
-
457
- <a href="http://localhost/wordpress/2019-08-21/107/">TEST</a>
458
-
459
- </li>
460
-
461
- </ul>
462
-
463
- </aside>
464
-
465
- <aside id="archives-3" class="widget widget_archive">
466
-
467
- <h2 class="widget-title">アーカイブ</h2>
468
-
469
- <ul>
470
-
471
- <li><a href='http://localhost/wordpress/2019/08/'>2019年8月</a></li>
472
-
473
- </ul>
474
-
475
- </aside>
476
-
477
- <aside id="categories-3" class="widget widget_categories">
478
-
479
- <h2 class="widget-title">カテゴリー</h2>
480
-
481
- <ul>
482
-
483
- <li class="cat-item cat-item-1"><a href="http://localhost/wordpress/category/%e6%9c%aa%e5%88%86%e9%a1%9e/">未分類</a>
484
-
485
- (6)
486
-
487
- </li>
488
-
489
- </ul>
490
-
491
- </aside>
492
-
493
- ```
494
-
495
-
496
-
497
591
  ご助力頂けると幸いです。
498
592
 
499
593
  よろしくお願いいたします。

1

サイドバーのhtmlを追記しました。

2019/08/28 04:55

投稿

S_fujii
S_fujii

スコア8

test CHANGED
File without changes
test CHANGED
@@ -416,6 +416,84 @@
416
416
 
417
417
 
418
418
 
419
+ 【追記】
420
+
421
+ サイドバーのhtmlが欲しいとの修正依頼を頂きましたので、追記させていただきます。
422
+
423
+ ```html
424
+
425
+ <aside id="recent-posts-4" class="widget widget_recent_entries">
426
+
427
+ <h2 class="widget-title">最近の投稿</h2>
428
+
429
+ <ul>
430
+
431
+ <li>
432
+
433
+ <a href="http://localhost/wordpress/2019-08-22/115/">tst</a>
434
+
435
+ </li>
436
+
437
+ <li>
438
+
439
+ <a href="http://localhost/wordpress/2019-08-22/113/">TESTS</a>
440
+
441
+ </li>
442
+
443
+ <li>
444
+
445
+ <a href="http://localhost/wordpress/2019-08-22/111/">これもテストです</a>
446
+
447
+ </li>
448
+
449
+ <li>
450
+
451
+ <a href="http://localhost/wordpress/2019-08-21/109/">koreha test desu</a>
452
+
453
+ </li>
454
+
455
+ <li>
456
+
457
+ <a href="http://localhost/wordpress/2019-08-21/107/">TEST</a>
458
+
459
+ </li>
460
+
461
+ </ul>
462
+
463
+ </aside>
464
+
465
+ <aside id="archives-3" class="widget widget_archive">
466
+
467
+ <h2 class="widget-title">アーカイブ</h2>
468
+
469
+ <ul>
470
+
471
+ <li><a href='http://localhost/wordpress/2019/08/'>2019年8月</a></li>
472
+
473
+ </ul>
474
+
475
+ </aside>
476
+
477
+ <aside id="categories-3" class="widget widget_categories">
478
+
479
+ <h2 class="widget-title">カテゴリー</h2>
480
+
481
+ <ul>
482
+
483
+ <li class="cat-item cat-item-1"><a href="http://localhost/wordpress/category/%e6%9c%aa%e5%88%86%e9%a1%9e/">未分類</a>
484
+
485
+ (6)
486
+
487
+ </li>
488
+
489
+ </ul>
490
+
491
+ </aside>
492
+
493
+ ```
494
+
495
+
496
+
419
497
  ご助力頂けると幸いです。
420
498
 
421
499
  よろしくお願いいたします。