wordpressに関するメモ 4
2009.12-14(月)
日記
トップページだけにアイキャッチを表示する方法大成功!!!
旧スキンに対する解説をつぶさに読んでみたら、ヒントになりました。 ということであっているかどうかは知りませんが方法。 ちなみにmainエリアに表示する場合ですが、他のheaderとかcontent areaでも応用できるんだと思います。
それぞれのスキン(ここの場合はstyle-vega)のlayout.cssにあるEye chatchの項目にある
/* Main - <body class="eye-m">
---------------*/
body.eye-m div#content {
border-top: none;
}
body.eye-m div#main {
padding-top: 180px;
background-image: url(images/eyecatch/image1.png);
background-repeat: no-repeat;
}
この部分を
/* Main - <body class="eye-m">
---------------*/
body.mainIndex div#content {
border-top: none;
}
body.mainIndex div#main {
padding-top: 180px;
background-image: url(images/eyecatch/image1.png);
background-repeat: no-repeat;
}
とすれば、出来ました。 これが果たして正しい方法なのかは分かりませんが、とりあえず出来たからいいと思う!(笑)

コメントを書く