Style the tag cloud

Adding this PHP code snippet to the functions.php of your wordpress theme will allow you to define style details like font-size small to large, and format of the tag cloud.

 

 

add_filter('widget_tag_cloud_args','style_tags');
function style_tags($args) {
$args = array(
'largest'    => '10',
'smallest'   => '10',
'format'     => 'list',
);
return $args;
}

Leave a comment