Hello there, I need some help in this problem.
I have a static html page and contains a sidebar navigation.
I tried to to register it in worpress so that the admin can add a menu in the navigation.
here's the html code for the sidebar navigation
`if (function_exists('register_nav_menus')) {
register_nav_menus(
array(
'navlist' => 'Main Navigation Menu'
)
);
} `
and here is the css design
#navlist
{
padding: 0 1px 1px;
margin-left: 0;
font: bold 12px Verdana, sans-serif;
background:#F3F3F3;
width: 13em;
border-right:#CCCCCC 1px solid;
}
#navlist li
{
list-style: none;
margin: 0;
border-top:#CCCCCC 1px solid;
text-align: right;
}
#navlist li a
{
display: block;
padding: 0.25em 0.5em 0.25em 0.75em;
background: #F3F3F3;
text-decoration: none;
}
#navlist li a:link { color: #0E2B8D; }
#navlist li a:visited { color: #999999; }
#navlist li a:hover
{
border-color: #FE3;
color: #666666;
background: #FFFFFF;
}
before I registered, I deleted first the original code in the sidebar navigation, I deleted the code inside the ul tag : here
div id="sidebar">
<img src="fpra_logo.gif" alt="FPRA Tampa Bay"/>
<br />
<div id="navcontainer">
<ul id="navlist">
<li><a href="index.html">Home</a></li>
<li><a href="about.html">About Us</a></li>
<li><a href="membership.html">Membership</a></li>
<li><a href="events.html">Events</a></li>
<li><a href="job.html">Job Board</a></li>
<li><a href="apr.html">APR Accreditation</a></li>
<li><a href="scholarship.html">Scholarship</a></li>
<li><a href="image.html">Image Awards</a></li>
<li><a href="resources.html">Resources</a></li>
<li><a href="news.html">News</a></li><li><a href="contact.html">Contact Us</a></li>
</ul>
</div>
</div>
and replace it with
<body>
<div id="wrap">
<div id="sidebar">
<img src="http://www.fpratampabay.org/fpra_logo.gif" alt="FPRA Tampa Bay"/>
<br />
<div id="navcontainer">
<?php wp_nav_menu(array('menu'=>'Main Nav Menu'));?>
</div>
</div>
to see what i mean..
the original site:http://www.fpratampabay.org/index.htm
wordpress theme: http://pinoytopics.com/tampa
the problem is the design is not worked, and I cant open the pages. how it will work? thanks in advance.