{"id":158267,"date":"2011-11-09T08:00:00","date_gmt":"2011-11-09T08:00:00","guid":{"rendered":"https:\/\/www.weixiaoduo.com\/plugins\/2024\/02\/22\/simple-page-sidebars\/"},"modified":"2025-02-23T08:00:00","modified_gmt":"2025-02-23T08:00:00","slug":"simple-page-sidebars","status":"publish","type":"post","link":"https:\/\/www.weixiaoduo.com\/plugins\/simple-page-sidebars\/","title":{"rendered":"Simple Page Sidebars"},"content":{"rendered":"<p>Designed for simplicity and flexibility, Simple Page Sidebars gives WordPress users, designers, and developers the ability to assign custom sidebars to individual pages\u2013without making any template changes. Existing sidebars can also be assigned in quick edit and bulk edit modes, helping save you time.<\/p>\n<p>In contrast to some of the more complicated plugins available, Simple Page Sidebars aims for basic, core-like functionality and integration that\u2019s easy to use without polluting your admin panel. And due to the way sidebars are saved, it utilizes built-in WordPress caching, so your site won\u2019t be bogged down with additional queries.<\/p>\n<p>Simple Page Sidebars also ships with a \u201cWidget Area\u201d widget for pulling all the widgets from one sidebar into another.<\/p>\n<h3>Benefits<\/h3>\n<ul>\n<li>No more site-wide, generic sidebars. Each page (or section) can have its own widgets.<\/li>\n<li>Complete control over the names of your custom sidebars.<\/li>\n<li>Assign the same sidebar to multiple pages.<\/li>\n<li>Modify a page\u2019s sidebar without creating an unnecessary revision.<\/li>\n<\/ul>\n<h3>Advanced Usage<\/h3>\n<p>If you want to assign custom sidebars to archive pages or replace multiple sidebars per page, this plugin likely won\u2019t be the best solution. However it\u2019s flexible enough to handle a wide range of page-based use cases. It can even be configured to work with Custom Post Types by adding a couple lines of code:<\/p>\n<pre><code>function myprefix_init() {\n    add_post_type_support( '{{post_type}}', 'simple-page-sidebars' );\n}\nadd_action( 'init', 'myprefix_init' );\n<\/code><\/pre>\n<h3>Additional Resources<\/h3>\n<ul>\n<li><a href=\"https:\/\/wordpress.org\/support\/view\/plugin-reviews\/simple-page-sidebars#postform\" rel=\"ugc\">Write a review<\/a><\/li>\n<li><a href=\"https:\/\/github.com\/cedaro\/simple-page-sidebars\" rel=\"nofollow ugc\">Contribute on GitHub<\/a><\/li>\n<li><a href=\"https:\/\/twitter.com\/cedaroco\" rel=\"nofollow ugc\">Follow @cedaroco<\/a><\/li>\n<li><a href=\"https:\/\/www.cedaro.com\/?utm_source=wordpress.org&utm_medium=link&utm_content=simple-page-sidebars-readme&utm_campaign=plugins\" rel=\"nofollow ugc\">Visit Cedaro<\/a><\/li>\n<\/ul>\n<h3>Notes<\/h3>\n<h3>Custom Loops<\/h3>\n<p>If your page has any custom loops or queries, they need to be followed by <code>wp_reset_query()<\/code>, otherwise the global <code>$post<\/code> variable will no longer reference the correct post and by the time the sidebar is displayed, Simple Page Sidebars won\u2019t know which page is being viewed, possibly leading to an unexpected sidebar being displayed.<\/p>\n<h3>Theme Sidebars<\/h3>\n<p>Some themes register different sidebars for their page templates, which means there isn\u2019t a default sidebar that can be replaced. To use Simple Page Sidebars in this instance, you can create a child theme and force page templates with custom sidebars to use the default sidebar.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Easily assign custom, widget-enabled sidebars to any page.<\/p>\n","protected":false},"author":65,"featured_media":344110,"comment_status":"open","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"slim_seo":{"title":"Simple Page Sidebars - \u8587\u6653\u6735\u63d2\u4ef6\u76ee\u5f55","description":"Easily assign custom, widget-enabled sidebars to any page."},"footnotes":""},"categories":[1],"tags":[14388,1783,804],"class_list":["post-158267","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-uncategorized","tag-custom-sidebars","tag-sidebars","tag-widgets"],"_links":{"self":[{"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/posts\/158267","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/users\/65"}],"replies":[{"embeddable":true,"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/comments?post=158267"}],"version-history":[{"count":0,"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/posts\/158267\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/media\/344110"}],"wp:attachment":[{"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/media?parent=158267"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/categories?post=158267"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/tags?post=158267"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}