{"id":9284245,"date":"2017-07-03T14:41:23","date_gmt":"2017-07-03T14:41:23","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/missing-widget_text-class\/"},"modified":"2017-07-03T14:45:50","modified_gmt":"2017-07-03T14:45:50","slug":"missing-widget_text-class","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/missing-widget_text-class\/","title":{"rendered":"Missing widget_text class"},"content":{"rendered":"<p>Cheers for the plugin.<\/p>\n<p>One improvement suggestion.<\/p>\n<p>Text widgets in WP get &#8216;widgets_text&#8217; class added to them by default. And that is being used by various themes to style widget&#8217;s elements.<\/p>\n<p>Your widget is missing that class, so styling for widget elements is missing in many themes.<\/p>\n<p>Any chance in adding that class to the widget your plugin generates, please?<\/p>\n<p>So it should be this:<\/p>\n<p>class=&#8221;widget widget_text classic-textwidget&#8221;<\/p>\n<p>instead of only what we currently have in your widget:<\/p>\n<p>class=&#8221;widget classic-textwidget&#8221;<\/p>\n<p>Regards<br \/>\nMichal<\/p>\n<p>P.S.<\/p>\n<p>For now I have added it myself by modifying line 20 in class-classic-wp-widget-text.php from:<\/p>\n<p><code>$widget_ops = array( &#039;classname&#039; =&gt; &#039;classic-textwidget&#039;, &#039;description&#039; =&gt; __(&#039;The classic text widget for arbitrary html or text.&#039;, &#039;classic-text-widget&#039;) );<\/code><\/p>\n<p>to:<\/p>\n<p><code>$widget_ops = array( &#039;classname&#039; =&gt; &#039;widget_text classic-textwidget&#039;, &#039;description&#039; =&gt; __(&#039;The classic text widget for arbitrary html or text.&#039;, &#039;classic-text-widget&#039;) );<\/code><\/p>\n","protected":false},"template":"","class_list":["post-9284245","topic","type-topic","status-publish","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/9284245","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":1,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/9284245\/revisions"}],"predecessor-version":[{"id":9284271,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/9284245\/revisions\/9284271"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=9284245"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}