Register Advertise with usHelp Desk Today's Posts Search

Closed Thread
Thread Tools Search this Thread
Unread 14th Mar 2011, 02:04 AM   #1
HyperActive Warrior
War Room Member
 
GrayGandalf's Avatar
 
Join Date: 2010
Location: USA
Posts: 150
Thanks: 26
Thanked 17 Times in 16 Posts
Default
Help with dynamic Nav menu
Share on: 
fb share twitter share gplus share more share

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 ;)
GrayGandalf is offline  
Unread 14th Mar 2011, 07:38 PM   #2
HyperActive Warrior
 
Join Date: 2010
Posts: 160
Thanks: 11
Thanked 12 Times in 12 Posts
Default
Re: Help with dynamic Nav menu
Share on: 
fb share twitter share gplus share more share

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.
Cash Money Hosting is offline  
The Following User Says Thank You to Cash Money Hosting For This Useful Post:
Closed Thread


Bookmarks

Tags
dynamic, menu, nav


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




All times are GMT -6. The time now is 12:32 PM.