- Original Poster
- #1
I will do my best at explaining this....
I have installed wordpress, and found a CSS theme I liked (sadly not a wordpress theme but I have in the main managed to port it over - and im just trying to get a few bits working).
The code on the css template is:
Im not sure if you can tell from that, but depending on the page that is active the style of the link changes.
I was going to put - <?php wp_nav_menu(); ?> on my site, but that will not do amend the styling depending on the page im on so is not much use.
Hopefully that makes sense?
I could use the code above and just alter it for my pages but wheres the fun in that.
I have installed wordpress, and found a CSS theme I liked (sadly not a wordpress theme but I have in the main managed to port it over - and im just trying to get a few bits working).
The code on the css template is:
HTML:
<div id="menubar">
<ul id="menu">
<!-- put class="selected" in the li tag for the selected page - to highlight which page you're on -->
<li class="selected"><a href="index.html">Home</a></li>
<li><a href="examples.html">Examples</a></li>
<li><a href="page.html">A Page</a></li>
<li><a href="another_page.html">Another Page</a></li>
<li><a href="contact.html">Contact Us</a></li>
</ul>
</div>
Im not sure if you can tell from that, but depending on the page that is active the style of the link changes.
I was going to put - <?php wp_nav_menu(); ?> on my site, but that will not do amend the styling depending on the page im on so is not much use.
Hopefully that makes sense?
I could use the code above and just alter it for my pages but wheres the fun in that.