| | #1 |
| HyperActive Warrior War Room Member Join Date: 2010 Location: USA
Posts: 150
Thanks: 26
Thanked 17 Times in 16 Posts
|
Hi, I am building a website for a friend using WP. I am trying to customize the nav so that the active tab (of the page the visitor is on) is highlighted. I am lost... What I have is few tabs (each under a different class), the regular a and hover are responsive to changes but the active is only showing up in the moment you click and then turns off. That's the code I have on the header: <ul> <li class="page1tab"><a href="http://domain.com/blog4/about">About</a></li> <li class="page2tab"><a href="http://domain.com/blog4/projects/">Projects</a></li> <li class="page3tab"><a href="http://domain.com/blog4/portfolio">Portfolio</a></li> <li class="page4tab"><a href="http://domain.com/blog4/blog/">Blog</a></li> <li class="page5tab"><a href="http://domain.com/blog4/our-office/">Our Office</a></li> <li class="page6tab"><a href="http://domain.com/blog4/contact">Contact</a></li> </ul> Does anyone know the solution? I don't know PHP so I got lost the answer may be here: Building a Dynamic WordPress Nav Menu - Beast-Blog.com or here: How To Create a:active Link For WordPress « Jake Belfry's Internet Marketing Blog But I will not know how to implement it... Thanks |
|
If you liked my post - thank me ;)
| |
| |
| | #2 |
| HyperActive Warrior Join Date: 2010
Posts: 160
Thanks: 11
Thanked 12 Times in 12 Posts
|
well, you should be using the ID identifier instead of seperate classes for each li Your going to have to get the active page out of the url [COLOR=Blue]<a href="http://domain.com/blog4/blog/">Blog</a> Its difficult to explain. If you like I could do this for you. Pm me with your email addy if interested. |
| |
| The Following User Says Thank You to Cash Money Hosting For This Useful Post: |
|
| Bookmarks |
| Tags |
| dynamic, menu, nav |
| |