-1

テーマの編集または作成について、ワードプレスの専門家の助けが必要です。私は lol.garena.ph を真似しようとしてきましたが、これまでのところ私が行ったのはナビゲーションボタンでした。コードは次のとおりです。

<style type="text/css">

body{

background-color:#000

}


Hh.hoverHome {
position: relative;
top: -3px; 
padding-bottom: 7px;
background:url(homeHover.png); /* this will raise the element */

}


Hn.hoverNews {
position: relative;
top: -3px; 
padding-bottom: 7px;
background:url(newsHover.png);

}


Hg.hoverGuides {
position: relative;
top: -3px; 
padding-bottom: 7px;
background:url(guidesHover.png);

}
Hh {
list-style: none;
height: 22px;
width: 79px;

float: left;
display: block;
padding: 5px 10px;
margin-right: 10px;
background:url(home.png);

}

Hn {
 list-style: none;
height: 22px;
width: 79px;

float: left;
display: block;
padding: 5px 10px;
margin-right: 10px;
background:url(news.png);

}

Hg {
 list-style: none;
height: 22px;
width: 79px;

float: left;
display: block;
padding: 5px 10px;
margin-right: 10px;
background:url(guides.png);

}

</style>

</head>

<body>

<div class="container">

</div>

<Hh onmouseover="this.className='hoverHome';" onmouseout="this.className='';">  </Hh>
<Hn onmouseover="this.className='hoverNews';" onmouseout="this.className='';"></Hn>
<Hg onmouseover="this.className='hoverGuides';" onmouseout="this.className='';"></Hg>

</body>
</html>

私が抱えている問題は、php ファイルしか表示されないため、これを wordpress テーマのどこに配置すればよいかわからないことです。2011 テーマの style.css に css 部分を挿入し、残りの部分を content.php に挿入しようとしましたが、まだ機能しません。私はまだWordpressに慣れていないので、助けてください、ありがとう.3

4

1 に答える 1