posts / blogs-members-directory-strange-nav-spacing-fix
Blogs & Members Directory, Strange Nav Spacing FIX
Tracking down a duplicate current_page_item link that the WPMU Dev Blogs and Members Directory plugins were injecting into the nav bar.
archived post — originally published 2010; code is DEFINITELY out of date.
Originally published on erikshosting.com. Archived here.
So I installed the wpmu dev teams blogs directory and their members directory plugins on the wpmu triden theme. I noticed that when I clicked on the link and went to one of the directory pages, the page spacing in the navbar got way big. I figured their was some spacing issue coming from the plugin, but it turns out its a little different than that. Looks like the ‘current_page_item’ was generating an empty href link before the actual link. So their were two links per
So how do you fix it?
Open up the blogs directory plugins php file, and find and remove the following line:
add_filter(‘the_title’, ‘blogs_directory_title_output’, 99, 2);
Now in the Members Directory, Find and remove this line:
add_filter(‘the_title’, ‘members_directory_title_output’, 99, 2);