Nov 28, 2009
Editing the Category Widget
I spent the last good bit of my time (probably a half hour) trying to figure out how to edit the WP Category widget so that it doesn’t print out a unordered list. It was tricky and took some research but I must say, most of it was because I didn’t realize what I was doing wrong.
Look on line 460 in wp-includes/default-widgets.php. You will see a <ul> tag, some php code, and then </ul>. Remove both the <ul> and </ul>. On line 462, delete what’s there and put in:
$cat_args['style'] = 'none'