WordPress.org

Ready to get started?Download WordPress

Plugin Directory

!This plugin hasn't been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.

Remove White Space

Removes white space from wp_list_pages and wp_list_categories (nice for IE6 - prevents gaps in vertical lists).

This function removes whitespace from the list items outputted by wp_list_pages and wp_list_categories.

This white space can cause layout issues in IE6 and some other browsers such as gaps between each list item even when there is no margin or padding applied.

Simply call wp_list_pages or wp_list_categories as usual:

<?php wp_list_pages(); ?>

To ensure there is no trailing white space around the first and last items, you should remove any white space between you <ul> tags and the PHP function:

<ul><?php wp_list_pages(); ?></ul>

Requires: 2.8 or higher
Compatible up to: 3.4.2
Last Updated: 2012-7-10
Downloads: 1,472

Ratings

5 stars
5 out of 5 stars

Support

Got something to say? Need help?

Compatibility

+
=
Not enough data

0 people say it works.
0 people say it's broken.

100,1,1
100,1,1
100,1,1