How to let tag cloud show the same size font and in list style?

It is very easy to tag cloud show the same size font and in list style, there are 2 ways to do this:

1. Change sidebar.php in templates:

<li>

<h2>Tag Cloud</h2>

<?php wp_tag_cloud(‘smallest=8&largest=8&number=45&orderby=name&format=list’); ?> <!– wp_tag_cloud(‘smallest=8&largest=8&number=45&orderby=name&format=list’)–>
</li>

another way is change code in widgets.php inside include document:

function wp_widget_tag_cloud($args) {
extract($args);
$options = get_option(‘widget_tag_cloud’);
$title = empty($options[‘title’]) ? __(‘Tags’) : apply_filters(‘widget_title’, $options[‘title’]);

echo $before_widget;
echo $before_title . $title . $after_title;
wp_tag_cloud(”); //wp_tag_cloud(‘smallest=8&largest=8&number=45&orderby=name&format=list’);
echo $after_widget;
}