質問編集履歴
2
追記
test
CHANGED
File without changes
|
test
CHANGED
@@ -67,3 +67,53 @@
|
|
67
67
|
<?php get_footer(1); ?>
|
68
68
|
|
69
69
|
```
|
70
|
+
|
71
|
+
|
72
|
+
|
73
|
+
CSS部分の追記です。
|
74
|
+
|
75
|
+
Custom CSS and JavaScriptプラグインのカスタムフィールドを使用し、
|
76
|
+
|
77
|
+
名前
|
78
|
+
|
79
|
+
custom_css_code
|
80
|
+
|
81
|
+
|
82
|
+
|
83
|
+
値
|
84
|
+
|
85
|
+
```CSS
|
86
|
+
|
87
|
+
#spritImg li{ display: inline-block; }
|
88
|
+
|
89
|
+
#spritImg li a{
|
90
|
+
|
91
|
+
display: block;
|
92
|
+
|
93
|
+
width: 80px;
|
94
|
+
|
95
|
+
height: 80px;
|
96
|
+
|
97
|
+
font-size: 0;
|
98
|
+
|
99
|
+
background: url(画像パス.png);
|
100
|
+
|
101
|
+
}
|
102
|
+
|
103
|
+
#spritImg li:nth-child(1) a{ background-position: 0 0; }
|
104
|
+
|
105
|
+
#spritImg li:nth-child(2) a{ background-position: 0 -80px; }
|
106
|
+
|
107
|
+
#spritImg li:nth-child(3) a{ background-position: 0 -160px; }
|
108
|
+
|
109
|
+
#spritImg li:nth-child(4) a{ background-position: -80px 0; }
|
110
|
+
|
111
|
+
#spritImg li:nth-child(5) a{ background-position: -80px -80px; }
|
112
|
+
|
113
|
+
#spritImg li:nth-child(6) a{ background-position: -80px -160px; }
|
114
|
+
|
115
|
+
```
|
116
|
+
|
117
|
+
|
118
|
+
|
119
|
+
固定ページでは問題なく動いておりますのでCSSが問題とは考えにくいです。
|
1
書式の変更
test
CHANGED
File without changes
|
test
CHANGED
@@ -17,6 +17,8 @@
|
|
17
17
|
|
18
18
|
|
19
19
|
以下、作成したテンプレートのコードになります。
|
20
|
+
|
21
|
+
```php
|
20
22
|
|
21
23
|
<?php
|
22
24
|
|
@@ -63,3 +65,5 @@
|
|
63
65
|
</div>
|
64
66
|
|
65
67
|
<?php get_footer(1); ?>
|
68
|
+
|
69
|
+
```
|