سلام
این منوی را که طراحی کردم را میخواهم درون صفحه قرار بدهم البطه با تابع () wp_list_categories به چه صورتی باید این کار را انجام بدهم لطفا راهنمایی کنید.
کدهای CSS
/* ================= FONT FACE ================== */
@font-face{
font-family: 'WebSymbolsRegular';
src: url('../fonts/websymbols-regular-webfont.eot');
src: url('../fonts/websymbols-regular-webfont.eot?#iefix') format('embedded-opentype'),
url('../fonts/websymbols-regular-webfont.woff') format('woff'),
url('../fonts/websymbols-regular-webfont.ttf') format('truetype'),
url('../fonts/websymbols-regular-webfont.svg#WebSymbolsRegular') format('svg');
}
/* ---------- Nav ----------- */
.nav ul,
.nav ul li {
padding:0;
margin:0;
list-style:none;
}
.nav .clear {
clear:both;
}
.nav {
position:relative;top:0px;left:1px;
width:100%;
position:relative;
-moz-border-radius:8px;
-webkit-border-radius:8px;
border-radius:8px;
}
.nav ul {
float:right;
position:relative;
}
.nav > ul > li {
float:right;
line-height:3em;
padding:0 1.3em;
position:relative;
}
.nav > ul > li:hover:first-child {
-moz-border-radius:0 8px 8px 0;
-webkit-border-radius:0 8px 8px 0;
border-radius:0 8px 8px 0;
}
/* ----- Border Last Round item ------ */
.nav > ul > li:hover:last-child {
-moz-border-radius:0 8px 8px 0;
-webkit-border-radius:0 8px 8px 0;
border-radius:0 8px 8px 0;
}
.nav ul li ul li:hover {
background-color:#fff;
}
.nav > ul > li a {
font-family:tahoma;
text-transform:uppercase;
color:#fff;
font-weight:700;
display:block;
text-shadow:0 1px 0 rgba(0,0,0,0.5);
text-decoration:none;
font-size:12px;
}
.nav ul li ul > li > a {
color:#363636;
text-transform:none;
text-shadow:none;
}
.nav li a.drop:after {
font-family: tahoma;
content:"[";
overflow:hidden;
position:absolute;
right:7px;
top:0;
}
/* 2-Levels Drop Down */
.nav .levels,
.nav .levels ul {
list-style: none outside none;
margin: 0;
left: -999em;
background:#e6e6e6;
position: absolute;
}
.nav .levels a {
display: block;
width:9.6em;
}
.nav .levels li:first-child {border-top:none;}
.nav .levels li {
border-top:1px solid #fff;
width:9.6em;
float:left;
position:relative;
}
.nav .levels li > a {
text-align:right;
display:block;
line-height:3em;
padding:0 1.3em;
}
.nav .levels li ul {
position: absolute;
top:0;
left: -999em;
}
/* ----- Hover ---- */
.nav li:hover ul.levels,
.nav .levels li:hover ul,
.nav .levels li ul li:hover ul {
-moz-box-shadow:0 3px 3px rgba(0,0,0,0.2);
-webkit-box-shadow:0 3px 3px rgba(0,0,0,0.2);
box-shadow:0 3px 3px rgba(0,0,0,0.2);
border-left:1px solid #515151;
border-right:1px solid #515151;
border-bottom:1px solid #515151;
top:3em;
left:0;
display:block;
}
.nav .levels li:hover ul {
z-index:5;
}
.nav .levels li:hover ul,
.nav .levels li ul li:hover ul {
top:0;
display:block;
}
.nav li:hover .levels li:hover {
-moz-transition:all 200ms linear 0s;
-webkit-transition:all 200ms linear 0s;
-o-transition:all 200ms linear 0s;
-ms-transition:all 200ms linear 0s;
background:#fff;
}
.nav li:hover li a:hover {
-moz-transition:all 200ms linear 0s;
-webkit-transition:all 200ms linear 0s;
-o-transition:all 200ms linear 0s;
-ms-transition:all 200ms linear 0s;
}
.nav .levels li:hover ul,
.nav .levels li ul li:hover ul{
left: 9.3em;
*left: 9.6em;
display:block;
}
.nav .levels li:hover ul ul {
left: -999em;
}
/* ========= COLORS ========= */
/* BLUE */
.blue-menu.nav ul li:hover {
background-color: #1eb6ff;
background: -ms-linear-gradient(top, #1eb6ff, #0b88ff); /* IE9 */
background: -moz-linear-gradient(top, #1eb6ff, #0b88ff); /* Firefox */
background: -o-linear-gradient(top, #1eb6ff, #0b88ff); /* Opera 11 */
background: -webkit-linear-gradient(top, #1eb6ff, #0b88ff); /* Chrome 11 */
background: -webkit-gradient(linear, left top, left bottom, color-stop(0, #1eb6ff), color-stop(1, #0b88ff)); /* Chrome 10, Safari */
}
.blue-menu.nav li:hover ul.levels,
.blue-menu.nav .levels li:hover ul,
.blue-menu.nav .levels li ul li:hover ul {border-top:4px solid #0b88ff;}
.blue-menu.nav .inline-search input[type="submit"] {color:#165080;}
.blue-menu.nav li:hover li a:hover {color:#029feb;}
.blue-menu.nav {
border:1px solid #003071;
-moz-box-shadow:inset 0 1px 0 rgba(122,180,218,1);
-webkit-box-shadow:inset 0 1px 0 rgba(122,180,218,1);
box-shadow:inset 0 1px 0 rgba(122,180,218,1);
background: -ms-linear-gradient(top, #1072b9, #0a497f); /* IE9 */
background: -moz-linear-gradient(top, #1072b9, #0a497f); /* Firefox */
background: -o-linear-gradient(top, #1072b9, #0a497f); /* Opera 11 */
background: -webkit-linear-gradient(top, #1072b9, #0a497f); /* Chrome 11 */
background: -webkit-gradient(linear, left top, left bottom, color-stop(0, #1072b9), color-stop(1, #0a497f)); /* Chrome 10 */
}
کد درون index.php
<div class="menu">
<div class="nav blue-menu">
<ul>
<li><a href="#">خانه</a></li>
<li><a class="drop" href="#">درباره ما</a>
<ul class="levels">
<li><a href="#">سرچشمه</a></li>
<li><a href="#">کارخانه</a></li>
<li><a href="#">ماشين آلات</a></li>
<li><a href="#">ترکيبات آب</a></li>
<li><a href="#">آزمايشگاه</a>
</ul>
</li>
<li><a href="#">محصولات</a></li>
<li><a href="#">گالری عکس</a></li>
<li><a href="#">اخبار سايت</a></li>
<li><a href="#">سلامتی</a></li>
<li><a href="#">تماس باما</a></li>
</ul>
<div class="clear"></div>
-->
</div>
</div>