From pagesource, I can see that there are several classes the wp has assigned to the in-house widgets. But where do I find the list of them?
for example: class="widget widget_pages"
& h2 class="widgettitle"
Anyone know? They are NOT in the default or classic themes.
That's because they individual widget class names are defined in the core WordPress files (the
widgets.php file in the
If you want a list of those, take a look at this screenshot attachment in Trac. Ignore the one with the "-alt" ending and just drop the ".gif" from the file names and you have all the widget classnames.
Technical note: The generic "widget" and "widgettitle" class names can be customized. From the first few lines of the default theme's functions.php file:
if ( function_exists('register_sidebar') )
'before_widget' => '<li id="%1$s" class="widget %2$s">',
'after_widget' => '</li>',
'before_title' => '<h2 class="widgettitle">',
'after_title' => '</h2>',
For more information, see Widgetizing Themes at the automattic.com website.