{"id":1461,"date":"2018-09-20T00:32:07","date_gmt":"2018-09-20T00:32:07","guid":{"rendered":"https:\/\/sites.generatepress.com\/dispatch\/?p=1461"},"modified":"2018-11-30T01:19:15","modified_gmt":"2018-11-30T01:19:15","slug":"aside-for-widgets","status":"publish","type":"post","link":"https:\/\/sites.generatepress.com\/dispatch\/aside-for-widgets\/","title":{"rendered":"Aside for Widgets"},"content":{"rendered":"<p>Sidebar Widgets are a main feature of any Magazine Blogging site. To aid with that Dispatch uses a nifty little plugin and a couple of custom CSS classes to make styling your sidebar a breeze.<\/p>\n<h2>Widget CSS Classes<\/h2>\n<p>Using the namesake plugin you can now add CSS Classes to Widgets. Simple.<\/p>\n<h3>Dispatch Widget Classes<\/h3>\n<p><strong>CSS Class:<\/strong> <code>zero-padding<\/code><br \/>\nRemoves the padding from the widget. Perfect for adding those banner ads for maximum space.<\/p>\n<p><strong>CSS Class:<\/strong> <code>no-background<\/code><br \/>\nRemoves the widget color background that is set in the Customizer.<\/p>\n<p><strong>CSS Class:<\/strong> <code>wpsp-card<\/code><br \/>\nUsed exclusively with the WP Show Posts Widget and with zero-padding and no-background.<br \/>\nRead more <a href=\"https:\/\/sites.generatepress.com\/dispatch\/using-wp-show-posts\/\">here<\/a><\/p>\n<h3>Adding your own classes<\/h3>\n<p>Want different color background for your widgets. Heres how to. Add you Custom Class Name to your widget. In this example we&#8217;ll go for a red color and name our class <code>red-background<\/code>. Now thats added lets add some CSS.<\/p>\n<pre><code>\r\n.widget.red-background {\r\n    background-color: #ff0000;\r\n}\r\n<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Sidebar Widgets are a main feature of any Magazine Blogging site. To aid with that Dispatch uses a nifty little plugin and a couple of &#8230; <a title=\"Aside for Widgets\" class=\"read-more\" href=\"https:\/\/sites.generatepress.com\/dispatch\/aside-for-widgets\/\" aria-label=\"Read more about Aside for Widgets\">Read more<\/a><\/p>\n","protected":false},"author":19,"featured_media":54,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-1461","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-uncategorized","infinite-scroll-item","generate-columns","tablet-grid-50","mobile-grid-100","grid-parent","grid-33"],"_links":{"self":[{"href":"https:\/\/sites.generatepress.com\/dispatch\/wp-json\/wp\/v2\/posts\/1461","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/sites.generatepress.com\/dispatch\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/sites.generatepress.com\/dispatch\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/sites.generatepress.com\/dispatch\/wp-json\/wp\/v2\/users\/19"}],"replies":[{"embeddable":true,"href":"https:\/\/sites.generatepress.com\/dispatch\/wp-json\/wp\/v2\/comments?post=1461"}],"version-history":[{"count":0,"href":"https:\/\/sites.generatepress.com\/dispatch\/wp-json\/wp\/v2\/posts\/1461\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/sites.generatepress.com\/dispatch\/wp-json\/wp\/v2\/media\/54"}],"wp:attachment":[{"href":"https:\/\/sites.generatepress.com\/dispatch\/wp-json\/wp\/v2\/media?parent=1461"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/sites.generatepress.com\/dispatch\/wp-json\/wp\/v2\/categories?post=1461"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/sites.generatepress.com\/dispatch\/wp-json\/wp\/v2\/tags?post=1461"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}