Remove whitespace from wordpress tagcloud
Posted in: Design
I hate whitespace in html code: if I need them I'll use css rules.
so that's a simple plugin edited from this one.
if you need both merge them
PHP:
-
<?php
-
/*
-
Plugin Name: Tag Cloud noWhitespace
-
Plugin URI: http://www.laboratoriocaffeina.it/design/2008/04/03/remove-whitespace-from-wordpress-tagcloud.html
-
Description: Makes wordpress dump out a tag cloud without whitespace between each word in tags (edit from http://www.185vfx.com/2007/10/wordpress-tag-cloud-formatting/)
-
Author: cedmax
-
Version: 1.0
-
Author URI: http://www.dioblog.it
-
*/
-
-
-
// This just echoes the chosen line, we'll position it later
-
function tci_kill_breaks($taglist) {
-
}
-
-
// Now we set that function up to execute when the tag list is generated
-
add_filter('wp_generate_tag_cloud', 'tci_kill_breaks',50);?>
download, rename to .php, upload to plugin folder and activate
(tested on 2.5)
Return to: Remove whitespace from wordpress tagcloud
Social Web