Tutorials
Wordpress display/hide child LI tags on menu with PHP
Monday, 02 March 2009 21:24
Although I didn't make this code I still feel it needs to be in the knowledge base area rather than the links section as it needs to be available to search the site for it, anyway I was basicallly finding it quite hard to find a wordpress plugin which allows the LI/UL tags to automatically hide depending on wether their parent element is selected or not, kind of like an accordion effect but without the javascript.
Anyway I came across THIS plugin which is very simple and easy to use.
I use this code to make it apply the hiding unless the parent is selected:
1 |
|
I've attached a zip of the file should the actual website ever go down for whatever reason.
All content is copyrighted to udjamaflip.com 2009-2010, All rights reserved.