Warrior Forum - The #1 Digital Marketing Forum & Marketplace

Warrior Forum - The #1 Digital Marketing Forum & Marketplace (https://www.warriorforum.com/)
-   Programming (https://www.warriorforum.com/programming/)
-   -   Help with dynamic Nav menu (https://www.warriorforum.com/programming/347919-help-dynamic-nav-menu.html)

GrayGandalf 14th March 2011 02:04 AM

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

Cash Money Hosting 14th March 2011 07:38 PM

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.