Hi Folks,
I would like each parent item to link to its own page, at the moment it just displays the child pages. If you click on the Medicines Management tab, you will see what I mean.
http://tinyurl.com/av4cbpm
Can anyone please help?
Many thanks
| SitePoint Sponsor |


Hi Folks,
I would like each parent item to link to its own page, at the moment it just displays the child pages. If you click on the Medicines Management tab, you will see what I mean.
http://tinyurl.com/av4cbpm
Can anyone please help?
Many thanks

Hi there,
This is what a menu point looks like that links to its own page:
This is what "Medecines management" looks like:HTML Code:<li class="item-779"><a href="/publications">Publications</a></li>
So, if I was you, I'd just remove the nested <ul> element and the class names "deeper" and "parent" and all should be good.HTML Code:<li class="item-797 deeper parent"> <a href="/medmanp">Medicines Management</a> <ul> <li class="item-798"><a href="/medmanp/contacts">Contacts</a></li> <li class="item-799"><a href="/medmanp/community-pharmacy-information">Community Pharmacy Information</a></li> <li class="item-801"><a href="/medmanp/formulary">Formulary</a></li> <li class="item-800"><a href="/medmanp/medicinces-management-useful-links">Medicinces Management Useful Links</a></li> </ul> </li>
How well do you know your JavaScript from your jQuery?
Check out SitePoint's latest JavaScript challenge
My blog
Bookmarks