views:

598

answers:

3

I'm trying to slightly modify the default wordpress tag cloud widget. I don't want to create my own widget because I literally want to adjust one small thing. I've looked through my wordpress installation but can't find the php file that contains the basic widgets.

Even though I assume that they are defined in each theme, I still looked in the core directories but came up empty handed.

So if any of you happen to have already figured this out, please make my life easier and let me know where I can find the default widgets...most importantly the tag cloud widget.

Thanks

A: 

The tag cloud widget is defined near the bottom of the default-widgets.php file in the wp-includes folder.

adrianbanks
+2  A: 

Those are located in the default widget class:

/wp-includes/default-widgets.php

For more detail: http://phpdoc.wordpress.org/trunk/WordPress/Widgets/WP_Widget_Tag_Cloud.html

The widget invokes a function deeper though that generates the actual output. You'll want to take a look at the wp_tag_cloud and wp_generate_tag_cloud functions in:

/wp-includes/category-template.php
WebJunk
+1  A: 

do take into account however that you'll lose your change when you upgrade wordpress (which is why I eventually did create my own shabby category-cloud widget instead of changing the default tag-cloud code).

futtta