{"id":18683,"date":"2012-06-22T17:10:26","date_gmt":"2012-06-22T17:10:26","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/custom-widget-classes\/"},"modified":"2013-02-19T16:27:07","modified_gmt":"2013-02-19T16:27:07","slug":"custom-widget-classes","status":"closed","type":"plugin","link":"https:\/\/wordpress.org\/plugins\/custom-widget-classes\/","author":8607216,"comment_status":"closed","ping_status":"closed","template":"","meta":{"version":"1.1","stable_tag":"1.1","tested":"3.5.2","requires":"3.0.0","requires_php":"","requires_plugins":"","header_name":"Custom Widget Classes","header_author":"wellwisher","header_description":"","assets_banners_color":"","last_updated":"2013-02-19 16:27:07","external_support_url":"","external_repository_url":"","donate_link":"http:\/\/wp-knowledge.com\/donate\/plugin\/custom-widget-classes\/?ref=readme","header_plugin_uri":"http:\/\/wp-knowledge.com","header_author_uri":"http:\/\/profiles.wordpress.org\/wellwisher\/","rating":5,"author_block_rating":0,"active_installs":300,"downloads":8913,"num_ratings":5,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","changelog"],"tags":[],"upgrade_notice":{"1.0":"<p>The first version.<\/p>"},"ratings":{"1":0,"2":0,"3":0,"4":0,"5":"5"},"assets_icons":[],"assets_banners":[],"assets_blueprints":{},"all_blocks":[],"tagged_versions":["1.1"],"block_files":[],"assets_screenshots":[],"screenshots":[]},"plugin_section":[],"plugin_tags":[22314,22315,16415],"plugin_category":[],"plugin_contributors":[81595],"plugin_business_model":[],"class_list":["post-18683","plugin","type-plugin","status-closed","hentry","plugin_tags-custom-widget-classes","plugin_tags-list-classes","plugin_tags-widget-class","plugin_contributors-wellwisher","plugin_committers-wellwisher"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/custom-widget-classes.svg","icon_2x":false,"generated":true},"screenshots":[],"raw_content":"<!--section=description-->\n<p>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.<\/p>\n\n<p>see the options at settings&gt;&gt;widget classes and add classes.<\/p>\n\n<p>If you are a theme developer you can add the classes in theme itself\nadd this code<\/p>\n\n<pre><code>add_filter('cWCdeveloperClasses','widgetclasses');\n\nfunction widgetclasses(){\n         $clsses['classes']= array(\n            array(\n                'class'=&gt;'with-border',\n                'desc'=&gt;'With Border'\n\n            ),\n            array(\n                'class'=&gt;'white-bg',\n                'desc'=&gt;'white background'\n            )\n        );              \n\n    return $clsses;         \n}\n<\/code><\/pre>\n\n<p>if you want to set a default one for all the newly added widgets,add the default class too as shown below<\/p>\n\n<pre><code>add_filter('cWCdeveloperClasses','widgetclasses');\n\nfunction widgetclasses(){\n         $clsses['classes']=array(\n            array(\n                'class'=&gt;'with-border',\n                'desc'=&gt;'With Border'\n\n            ),\n            array(\n                'class'=&gt;'white-bg',\n                'desc'=&gt;'white background'\n            )\n        );   \n\n        $clsses['default']=array(       \n                'class'=&gt;'widget',      \n                'desc'=&gt;'Widget'\n                );  \n\n    return $clsses;         \n}\n<\/code><\/pre>\n\n<!--section=installation-->\n<p>This section describes how to install the plugin and get it working.<\/p>\n\n<ol>\n<li>Download and install the plg-in<\/li>\n<\/ol>\n\n<p>see the options at settings&gt;&gt;widget classes and add classes .<\/p>\n\n<p>If you are a theme developer you can add the classes in theme itself\nadd this code\nadd_filter('cWCdeveloperClasses','widgetclasses');<\/p>\n\n<pre><code>function widgetclasses(){\n         $clsses['classes']=array(\n            array(\n                'class'=&gt;'with-border',\n                'desc'=&gt;'With Border'\n\n            ),\n            array(\n                'class'=&gt;'white-bg',\n                'desc'=&gt;'white background'\n            )\n        );              \n\n    return $clsses;         \n}\n<\/code><\/pre>\n\n<p>if you want to set a default one for all the newly added widgets,add the default class too as shown below<\/p>\n\n<pre><code>add_filter('cWCdeveloperClasses','widgetclasses');\n\nfunction widgetclasses(){\n         $clsses['classes']=array(\n            array(\n                'class'=&gt;'with-border',\n                'desc'=&gt;'With Border'\n\n            ),\n            array(\n                'class'=&gt;'white-bg',\n                'desc'=&gt;'white background'\n            )\n        );   \n\n        $clsses['default']=array(       \n                'class'=&gt;'widget',      \n                'desc'=&gt;'Widget'\n                );  \n\n    return $clsses;         \n}\n<\/code><\/pre>\n\n<p>then you can see the classes in a droplist under each widgets, user can choose the class from the list<\/p>\n\n<!--section=changelog-->\n<h4>1.1<\/h4>\n\n<ul>\n<li>Fixed some faluts in version 1.0.<\/li>\n<\/ul>\n\n<h4>1.0<\/h4>\n\n<ul>\n<li>first version.<\/li>\n<\/ul>","raw_excerpt":"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","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/18683","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=18683"}],"author":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/wellwisher"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=18683"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=18683"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=18683"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=18683"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=18683"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=18683"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}