Ive produced a wordpress theme so when I posted it for their directory I had been told I desired to possess some default icons. Ive been attempting to discover how to get this done but aren't able to find anything around the matter.


Only use *the_widget()* function:

if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar() && !is_active_sidebar( 'your-example-widget-area' ) ) {
echo '<div>';
            'title'     => 'example title'
            ,'text'     => '
                    Lorem ipsum dolor sit amet, consectetur adipiscing elit. 
                    Aenean et quam a ante sodales feugiat. Aliquam et vulputate turpis. 
                    Mauris quis sodales neque. Sed vestibulum faucibus eros nec tincidunt. 
                    Integer tortor magna, suscipit vitae ultricies vel, vehicula sit amet sapien. 
            ,'filter'   => ''
            'before_widget' => '<div class="widget-container">'
            ,'after_widget' => '</div>'
            ,'before_title' => '<h3 class="widget-title">'
            ,'after_title'  => '</h3>'
echo '</div>'; } elseif( is_active_sidebar( 'your-example-widget-area' ) ) {
echo '<div>';
    dynamic_sidebar( 'your-example-widget-area' );  
echo '</div>';     } // endif;

Hope that can help. (Sry, for that strange elseif position. Formatting get's wrong right now.)

Fairly simple to look at Wordpress :)

Widgeizing themes

Widgets API

How to create widgets