質問編集履歴

2

syuusei

2017/08/12 08:04

投稿

vitabrevisarsl1
vitabrevisarsl1

スコア57

test CHANGED
File without changes
test CHANGED
@@ -92,7 +92,7 @@
92
92
 
93
93
 
94
94
 
95
- ◆sidebar,php
95
+ ◆sidebar.php
96
96
 
97
97
  ```php
98
98
 

1

追記

2017/08/12 08:04

投稿

vitabrevisarsl1
vitabrevisarsl1

スコア57

test CHANGED
File without changes
test CHANGED
@@ -1,4 +1,10 @@
1
+ ◇ローカル開発環境XAMPP
2
+
1
- WordPress 4.8.1
3
+ WordPress 4.8.1
4
+
5
+ ◇テーマ:「[WordPressデザインブック3.x対応](https://www.amazon.co.jp/gp/product/4883377830/ref=oh_aui_detailpage_o09_s00?ie=UTF8&psc=1)」添付CD のsampleテーマ。下記◆はいずれもsampleディレクトリ下。
6
+
7
+
2
8
 
3
9
  ![イメージ説明](9a73b53663b918cd32cf431be152dedc.png)
4
10
 
@@ -22,4 +28,724 @@
22
28
 
23
29
 
24
30
 
31
+ ◆home.php
32
+
33
+ ```php
34
+
35
+ <?php get_header(); ?>
36
+
37
+ <!-- Contents -->
38
+
39
+ <div id="content">
40
+
41
+ <p class="title">RECENT POSTS</p>
42
+
43
+ <?php if(have_posts()): while(have_posts()):
44
+
45
+ the_post(); ?>
46
+
47
+ <?php get_template_part('content'); ?>
48
+
49
+ <?php endwhile; endif; ?>
50
+
51
+ <?php get_template_part('pagenation'); ?>
52
+
53
+ </div>
54
+
55
+ <?php get_sidebar(); ?>
56
+
57
+ <?php get_footer(); ?>
58
+
59
+ ```
60
+
61
+
62
+
63
+ ◆page.php
64
+
65
+ ```php
66
+
67
+ <?php get_header(); ?>
68
+
69
+ <!-- Contents -->
70
+
71
+ <div id="content">
72
+
73
+ <?php if(have_posts()): while(have_posts()):
74
+
75
+ the_post(); ?>
76
+
77
+ <div class="post">
78
+
79
+ <h2><?php the_title(); ?></h2>
80
+
81
+ <?php the_content(); ?>
82
+
83
+ <?php endwhile; endif; ?>
84
+
85
+ </div>
86
+
87
+ <?php get_sidebar(); ?>
88
+
89
+ <?php get_footer(); ?>
90
+
91
+ ```
92
+
93
+
94
+
95
+ ◆sidebar,php
96
+
97
+ ```php
98
+
99
+ <div id="sidebar">
100
+
101
+ <ul>
102
+
103
+ <?php dynamic_sidebar(); ?>
104
+
105
+ </ul>
106
+
107
+ </div>
108
+
109
+ ```
110
+
111
+
112
+
113
+ ◆style.css
114
+
115
+ ```css
116
+
117
+ /* Basical things */
118
+
119
+ body {
120
+
121
+ font-family: 'メイリオ', 'Hiragino KaKu Gothic Pro', sans-serif;
122
+
123
+ }
124
+
125
+
126
+
127
+ a {
128
+
129
+ text-decoration: none;
130
+
131
+ color: #0c8bcd;
132
+
133
+ }
134
+
135
+
136
+
137
+ a img{
138
+
139
+ border: none;
140
+
141
+ }
142
+
143
+
144
+
145
+ /* Container */
146
+
147
+ div#container {
148
+
149
+ width: 900px;
150
+
151
+ margin: 0 auto;
152
+
153
+ }
154
+
155
+
156
+
157
+ /* Header */
158
+
159
+ div#header{
160
+
161
+ font-family: 'Trebuchet MS', sans-serif;
162
+
163
+ margin-bottom: 20px;
164
+
165
+ }
166
+
167
+
168
+
169
+ div#header h1{
170
+
171
+ font-size: 2.5em;
172
+
173
+ margin: 0;
174
+
175
+ }
176
+
177
+
178
+
179
+ div#header h1 a{
180
+
181
+ color: #000000;
182
+
183
+ }
184
+
185
+
186
+
187
+ div#header p#desc{
188
+
189
+ font-size: 1em;
190
+
191
+ font-weight: bold;
192
+
193
+ color: #999;
194
+
195
+ morgin: 0 0 5px;
196
+
197
+ }
198
+
199
+
200
+
201
+ div#subinfo{
202
+
203
+ text-align: right;
204
+
205
+ margin: -32px 0 5px
206
+
207
+ }
208
+
209
+
210
+
211
+ /* Navigation Bar */
212
+
213
+ div#nav{
214
+
215
+ font-size: 0.75em;
216
+
217
+ height: 30px;
218
+
219
+ background-color: #fff;
220
+
221
+ border: solid 1px #aaa;
222
+
223
+ margin-bottom: 8px;
224
+
225
+ }
226
+
227
+
228
+
229
+ div#nav ul{
230
+
231
+ margin: 0;
232
+
233
+ padding: 0;
234
+
235
+ }
236
+
237
+
238
+
239
+ div#nav li{
240
+
241
+ list-style-type: none;
242
+
243
+ float: left;
244
+
245
+ }
246
+
247
+
248
+
249
+ div#nav li a{
250
+
251
+ display: block;
252
+
253
+ width: 150px;
254
+
255
+ line-height: 30px;
256
+
257
+ border-right: solid px #aaa;
258
+
259
+ color: #000;
260
+
261
+ text-align: center;
262
+
263
+ }
264
+
265
+
266
+
267
+ div#nav li a:hover{
268
+
269
+ background-color: #c4f254;
270
+
271
+ }
272
+
273
+
274
+
275
+
276
+
277
+ /* Contents */
278
+
279
+ div#content{
280
+
281
+ width: 890px;
282
+
283
+ float: left;
284
+
285
+ }
286
+
287
+
288
+
289
+ p.title{
290
+
291
+ font-weight: bold;
292
+
293
+ color: #585858;
294
+
295
+ width: 200px;
296
+
297
+ margin: 0 0 10px;
298
+
299
+ padding: 0 30px 0 10px;
300
+
301
+ background-image: url(bar.png);
302
+
303
+ background-repeat: no-repeat;
304
+
305
+ background-position: right top;
306
+
307
+ }
308
+
309
+
310
+
311
+ p.pagenation{
312
+
313
+ font-size: 0.75em;
314
+
315
+ overflow: hidden;
316
+
317
+ }
318
+
319
+
320
+
321
+ span.oldpage{
322
+
323
+ float: right;
324
+
325
+ }
326
+
327
+
328
+
329
+ span.newpage{
330
+
331
+ float: left
332
+
333
+ }
334
+
335
+
336
+
337
+
338
+
339
+ /* Articles */
340
+
341
+ div.post{
342
+
343
+ margin: 0 0 30px 0;
344
+
345
+ width: 550px;
346
+
347
+ overflow: hidden;
348
+
349
+ /* float: left; */
350
+
351
+ }
352
+
353
+
354
+
355
+ div.post h2{
356
+
357
+ background-image: url("chip.png");
358
+
359
+ background-repeat: no-repeat;
360
+
361
+ background-position: left center;
362
+
363
+ border-top: solid 1px #aaa;
364
+
365
+ border-bottom: solid 1px #aaa;
366
+
367
+ font-size: 0.875em;
368
+
369
+ padding: 10px 18px;
370
+
371
+ margin: 0;
372
+
373
+ }
374
+
375
+
376
+
377
+ div.post h2 a{
378
+
379
+ color: #000;
380
+
381
+ }
382
+
383
+
384
+
385
+ div.post p{
386
+
387
+ font-size: 0.875em;
388
+
389
+ line-height: 1.6;
390
+
391
+ }
392
+
393
+
394
+
395
+ div.post p.postcat{
396
+
397
+ text-align: right;
398
+
399
+ margin: -10px 10px 10px 0;
400
+
401
+ }
402
+
403
+
404
+
405
+ div.post p.postcat a{
406
+
407
+ font-size: smaller;
408
+
409
+ background-color: #a7d043;
410
+
411
+ border-radius: 2px;
412
+
413
+ color: #fff;
414
+
415
+ padding: 1px 5px;
416
+
417
+ }
418
+
419
+
420
+
421
+ div.post p.postinfo{
422
+
423
+ color: #0c8bcd;
424
+
425
+ text-align: right;
426
+
427
+ margin: 0;
428
+
429
+ }
430
+
431
+
432
+
433
+
434
+
435
+ /* Single Pages */
436
+
437
+ .single div.post h2{
438
+
439
+ background-color: #333;
440
+
441
+ color: white;
442
+
443
+ }
444
+
445
+ .single div.post h2 a{
446
+
447
+ color: white;
448
+
449
+ }
450
+
451
+
452
+
453
+
454
+
455
+ /* pictures inside articles */
456
+
457
+ .aligncenter{
458
+
459
+ display: block;
460
+
461
+ margin-left: auto;
462
+
463
+ margin-right: auto;
464
+
465
+ }
466
+
467
+ .alignleft{
468
+
469
+ float: left;
470
+
471
+ margin-left: 10px;
472
+
473
+ margin-bottom: 10px;
474
+
475
+ }
476
+
477
+ .alignright{
478
+
479
+ float: right;
480
+
481
+ margin-left: 10px;
482
+
483
+ margin-bottom: 10px;
484
+
485
+ }
486
+
487
+
488
+
489
+ .wp-caption{
490
+
491
+ border: solid 1px #aaa;
492
+
493
+ text-align: center;
494
+
495
+ padding-top: 5px;
496
+
497
+ }
498
+
499
+
500
+
501
+ /* Gallery */
502
+
503
+ .gallery-item{
504
+
505
+ width: 33%;
506
+
507
+ float: left;
508
+
509
+ margin-top: 0;
510
+
511
+ text-align: center;
512
+
513
+ }
514
+
515
+ .gallery img{
516
+
517
+ border: solid 1px #aaa;
518
+
519
+ padding: 5px;
520
+
521
+ }
522
+
523
+ .gallery a:hover img{
524
+
525
+ background-color: #c4f254;
526
+
527
+ }
528
+
529
+ .gallery dd{
530
+
531
+ margin: 0;
532
+
533
+ font-size: 0.75em;
534
+
535
+ }
536
+
537
+ gallery br+br{
538
+
539
+ display: none;
540
+
541
+ }
542
+
543
+
544
+
545
+
546
+
547
+ /* Sidebar */
548
+
549
+ div#sidebar{
550
+
551
+ width: 300px;
552
+
553
+ float: right;
554
+
555
+ }
556
+
557
+
558
+
559
+ div#sidebar ul{
560
+
561
+ margin: 0;
562
+
563
+ padding: 0;
564
+
565
+ list-style-type: none;
566
+
567
+ }
568
+
569
+
570
+
571
+ div#sidebar .widget{
572
+
573
+ margin-bottom: 20px;
574
+
575
+ }
576
+
577
+
578
+
579
+ div#sidebar h2{
580
+
581
+ font-size: 0.75em;
582
+
583
+ color: #fff;
584
+
585
+ background-color: #aaa;
586
+
587
+ border-radius: 3px;
588
+
589
+ padding: 2px 10px;
590
+
591
+ margin: 0;
592
+
593
+ }
594
+
595
+
596
+
597
+ div#sidebar li li{
598
+
599
+ font-size: 0.75em;
600
+
601
+ border-bottom: dotted 1px #aaa;
602
+
603
+ margin: 0;
604
+
605
+ }
606
+
607
+
608
+
609
+ div#sidebar li li a{
610
+
611
+ color: #000;
612
+
613
+ display: block;
614
+
615
+ padding: 5px 10px;
616
+
617
+ }
618
+
619
+
620
+
621
+ div#sidebar li li a:hover{
622
+
623
+ background-color: #f7e29e;
624
+
625
+ }
626
+
627
+
628
+
629
+
630
+
631
+ /* Photo Dropper */
632
+
633
+ .alignnone{
634
+
635
+ text-align: center;
636
+
637
+ margin: 30px 0;
638
+
639
+ border: solid 1px #aaa;
640
+
641
+ padding: 10px;
642
+
643
+ }
644
+
645
+ #pdrp_endAttribution{
646
+
647
+ border: none;
648
+
649
+ padding: 0;
650
+
651
+ font-size: 14px;
652
+
653
+ font-style: italic;
654
+
655
+ text-align: right;
656
+
657
+ }
658
+
659
+
660
+
661
+ /* Wether and Temperature */
662
+
663
+ p.tenki{
664
+
665
+ width: 50px;
666
+
667
+ float: left;
668
+
669
+ text-align: center;
670
+
671
+ border: solid 1px #f3b62f;
672
+
673
+ padding: 5px;
674
+
675
+ margin-right: 10px;
676
+
677
+ margin-bottom: 10px;
678
+
679
+ }
680
+
681
+
682
+
683
+ /* related issues */
684
+
685
+ div.related{
686
+
687
+ border: solid 1px #aaa;
688
+
689
+ margin-top: 20px;
690
+
691
+ }
692
+
693
+ div.related p{
694
+
695
+ color: #fff;
696
+
697
+ background-color: #a7d043;
698
+
699
+ margin: 0;
700
+
701
+ padding-left: 10px;
702
+
703
+ }
704
+
705
+ div.related ol{
706
+
707
+ font-size: 0.75em;
708
+
709
+ }
710
+
711
+
712
+
713
+ /* links to devided issues */
714
+
715
+
716
+
717
+
718
+
719
+
720
+
721
+ /* Footer */
722
+
723
+ div#footer{
724
+
725
+ border-top: solid 1px #aaa;
726
+
727
+ padding: 6px 0;
728
+
729
+ clear: both;
730
+
731
+ }
732
+
733
+
734
+
735
+ div#footer p{
736
+
737
+ font-size: 0.75em;
738
+
739
+ font-style: normal;
740
+
741
+ font-family: Verdana, sans-serif;
742
+
743
+ margin: 0;
744
+
745
+ }
746
+
747
+ ```
748
+
749
+
750
+
25
751
  ご教授いただけますと幸いです。