WordPress.org

Ready to get started?Download WordPress

Plugin Directory

Custom Widget Classes

Custom Widget Classes helps to set different css class or styles for widgets,the css class or styles can show in a dropdown list to be choosed

Custom Widget Classes helps to set different css class or styles for widgets,the css class or styles can show in a dropdown list to be choosed . the list of css classes can be added from backend and also can code with theme.

see the options at settings>>widget classes and add classes.

If you are a theme developer you can add the classes in theme itself add this code

add_filter('cWCdeveloperClasses','widgetclasses');

function widgetclasses(){
         $clsses['classes']= array(
            array(
                'class'=>'with-border',
                'desc'=>'With Border'

            ),
            array(
                'class'=>'white-bg',
                'desc'=>'white background'
            )
        );              

    return $clsses;         
}

if you want to set a default one for all the newly added widgets,add the default class too as shown below

add_filter('cWCdeveloperClasses','widgetclasses');

function widgetclasses(){
         $clsses['classes']=array(
            array(
                'class'=>'with-border',
                'desc'=>'With Border'

            ),
            array(
                'class'=>'white-bg',
                'desc'=>'white background'
            )
        );   

        $clsses['default']=array(       
                'class'=>'widget',      
                'desc'=>'Widget'
                );  

    return $clsses;         
}

Requires: 3.0.0 or higher
Compatible up to: 3.5.2
Last Updated: 2013-2-19
Downloads: 5,037

Ratings

5 stars
5 out of 5 stars

Support

0 of 1 support threads in the last two months have been resolved.

Got something to say? Need help?

Compatibility

+
=
Not enough data

0 people say it works.
0 people say it's broken.

100,1,1
100,2,2
100,3,3 100,1,1
100,1,1
100,1,1
100,2,2
100,2,2