[Plugin: Advanced Menu Widget] diff to only show the widget when there are pages to show.
-
I made this small patch to fit my use case where I only want to show the widget on pages when it will show child pages. I didn’t like the default behavior where there would be an empty widget ul when there were no pages to list.
Feel free to use/adapt/modify this code… Thanks for writing this great plugin so i didn’t have to!
[Code moderated as per the Forum Rules. Please use the pastebin]
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
- The topic ‘[Plugin: Advanced Menu Widget] diff to only show the widget when there are pages to show.’ is closed to new replies.