![]() |
Help with dynamic Nav menu 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 |
Re: Help with dynamic Nav menu 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. |
| All times are GMT -6. The time now is 10:44 AM. |