This plugin hasn’t been tested with the latest 3 major releases of WordPress. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.

Remove White Space


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>

Contributors & Developers

“Remove White Space” is open source software. The following people have contributed to this plugin.


Translate “Remove White Space” into your language.

Interested in development?

Browse the code, check out the SVN repository, or subscribe to the development log by RSS.



  • Checked compatibility with WordPress 3.4.1


  • First Release