The Code Cave Cold storage before my best ideas melt away…

Per Page Sidebars

This plugin allows the creation and display of custom sidebars for any page on your site. On each page, you can choose which of your current theme's sidebars will be replaced. The replacement works for all descendants of a replaced page.

In this fashion you can:
1. Easily create a CMS like site with unique sidebars for every page, even if your theme doesn't support it.
2. Create a sidebar with a Cart widget that displays on store pages created by the WP-E-Commerce page, but not anywhere else on the site.
3. Use parent pages to create themed areas of your site, without creating custom page templates.

This plugin is compatible with every theme and all widgets because it hijacks your theme's sidebars instead of replacing them.

Download

Latest version: Download Per Page Sidebars v1.0 [zip]

Installation

  1. Upload the tcc-pps directory to the /wp-content/plugins/ directory.
  2. Activate the plugin through the 'Plugins' menu in WordPress.
  3. Modify the display settings as needed on the Settings > Per Page Sidebar page.

FAQ

Q. My left sidebar was replaced on the parent but it not on the child, why?
A. Some themes allow you to chose different sidebar layouts on each page. Sometimes these themes rely on a Primary/Secondary Sidebar configuration rather than a Right/Left sidebar convention. This may lead to confusion when the parent displays two sidebars and the child only displays one. This plugin replaces the sidebar by name not by position. In a 2 column layout, the only sidebar is by definition the "Primary" sidebar. Replacing a "Secondary" sidebar in the parent page will not alter the appearance of 2 column child page if the "Secondary" sidebar is never displayed.

Q. Can I replace more than one sidebar per page?
A. Currently only one sidebar can be replaced per page. If you wish to replace multiple sidebars per page, leave a commment and I may add this feature.

Q. Can I replace sidebars on posts or custom post types?
A. Currently only one pages can have their sidebars replaced. If this is a disired feature, leave comments requesting it and I can add the feature fairly easily.

Q. Can my authors & contributors replace the sidebar on a page?
A. A user can only replace a sidebar on a page if their role has the edit_theme_options capability. A user can edit a page that has been assigned custom sidebar and that custom sidebar will not be dropped. A user without the edit_theme_options capability simply cannot turn that functionality on or off.

Changelog

0.1

  • Initial release.
Comments (18) Trackbacks (3)
  1. thanks for informative post. i am pleased sure this post has helped me save many hours of browsing other similar posts just to find what i was looking for.http://www.ojogosdomario.com

  2. It will very useful if you could hide sidebar in wordpress posts.

    Thank you anyway.

    Fco.

  3. It would very useful if you could hide sidebar in wordpress posts.

    Thank you anyway.

    Fco.

  4. Unfortunately, that wouldn’t work well for almost every theme out there. WordPress simply fills in the space the theme leaves open for the widgets. This plugin changes what it fills that space with. Even if this plugin filled it with nothing, the space would still be there.

  5. Hello, i downloaded and installed the plug-in but I’m not sure how to use it, I dont see it in the widgets are.

  6. nvm i found out, now my question is, does it only edit the sidebar on only one page?

  7. Glad you got it to work for you. You can use the custom sidebar on that page or the children of the page on which it was created.

  8. Hi Brian, this works well except I can’t get my Listwire autoresponder form to function properly. The text entry areas don’t show up.

  9. Hi, I’m not sure where to locate the settings of the plugin. It’s not in my ‘settings’ section…

  10. Hi Brian. Cool plugin but for some reason it has changed the menus on all pages, not just the one I want. Any idea why? Thanks

  11. Hi Brian,

    Thanks for this plugin , have used on a few site , a recent site I was trying to register widgets for 2 pages with the same name but different parents , however this wouldn’t work due to the way the wordpress widgets are registered using the page name. I modified the code to register the widgets with the parent name and the post name. Code for this is here if anyone else wants it : http://pariswells.com/blog/code/per-page-sidebars-does-not-work-with-duplicate-page-names

    Thanks!

    Paris

  12. @paris Interesting… I’ll have to think whether to include that as a permanent fix.. I’d like to keep the name of the sidebar short and this fix may not be the ideal one as the parent names could be duplicated too. Putting the ID of the page in could work… I’ll think on this.

  13. The link to edit per page sidebars has disappeared from my Settings menu, but the sidebars I’ve already created are still there. I tried uninstalling and reinstalling, but still nothing in the sidebar menu. Any ideas on how to fix this?

  14. @michael it sounds like you turned off that section. You can go under display options as you are editing a post and make it visible again. If that’s not the problem, I may need to take a closer look.

  15. I already installed per page sidebar. The problem is, why in the wordpress menu”Settings” … the “per page sidebar menu” does not appear? Thanks

  16. Hello,
    me too, I have been using this plugin for about 2 years for a client site, and it has been very good, however I upgraded WP and the plugin and now it has disappeared from the Settings menu..
    I have used another plugin but would like to return to this one! Let me know if there is a fix, thankyou.

  17. Yes, WP says it’s only supported up through WP 3.0.5. Current version is WP 3.3.2… Any updates? I don’t see this listed in the Settings area anywhere, having just installed & activated it. Thoughts? Fixes?

    Best,
    ~MG

  18. It does work through the current version. I need to update the read me file. There is no settings page, the options appear on the post editor page. Take a look for it there and marking checkboxes will make sidebars visible for you to add widgets to on the widgets page under the appearance menu.


Leave a comment

(required)