Custom Sidebars Pro

Supercharge WordPress widgets by easily creating and dynamically displaying custom areas on posts, categories, pages or by user type.

Version 2.1.0.3

  • Add new Widget-Visibility option: Guests only

Changelog

March 13, 2015 - version 2.1.0.3
  • Add new Widget-Visibility option: Guests only

January 13, 2015 - version 2.1.0.2
  • Close possible security hole (XSS vulnerability)

November 29, 2014 - version 2.1.0.1
  • Fix incompatibility with PopUp plugin

October 27, 2014 - version 2.1
  • Fixed: Sidebars could not be created on certain webserver setups.

September 29, 2014 - version 2.0.9.9
  • Fix: Plugin will install to the correct folder.
  • Fix: Membership levels are recognized correctly by Visibility module.
  • Fix: Export function now works in all browsers.
  • Better: Add context-guide how to changes settings for static front-page.
  • Better: Improve layout of Custom Sidebars column in posts-list on small screens.

September 9, 2014 - version 2.0.9.7
  • New: WPML support to translate name/description of custom- and theme-sidebars!
  • New: A column in the post-list shows the assigned custom sidebars.
  • New: Assign Custom Sidebars to a post via the Quick-Edit form.
  • New: Assign a Sidebar to a specific Author via the Sidebar Location dialog.
  • New: Assign a Sidebar to 404 pages via the Sidebar Location dialog.
  • New: Sidebars can be sorted and filtered by title.
  • Improved loading performance of the Widgets screen.

August 28, 2014 - version 2.0.9.6
  • Fix: When adding new widgets they are not linked anymore.
  • Fix: In some browsers the "Add sidebar" popup was partially hidden.
  • Fix: Sometimes the dropdown list of a multiselect list stayed open.
  • Fix: Plugin now correctly loads the .po files to translate to other languages.
  • Some other small improvements.

August 25, 2014 - version 2.0.9.5
  • Fix: PHP error "WDev" undefined that appeared in 2.0.9.4
  • Fix: For some users the plugin was not loading anymore after updating to 2.0.9.1.

August 23, 2014 - version 2.0.9.3
  • Fix: Z-index issue in Dashboard where wide widgets where covered by the main-menu.
  • Fix: Added compatibility with version 2.0.9 for static front-page sidebars.

August 22, 2014 - version 2.0.9.2
  • Fix: Sidebar Locations "Front Page" and "Post Index" now work correctly.

August 22, 2014 - version 2.0.9.1
  • Important Fix: Sidebars now support unicode-text in name and description.
  • Minor: New debugging option that explains why a sidebar or widget is displayed.

July 22, 2014 - version 2.0.9
  • Fix: Fixed issue with WP sidebar chooser right after creating a new sidebar.
  • Fix: Fixed various issues when flagging a sidebar s replaceable.
  • Fix: Plugin will not load in accessibility mode but display a notice instead.
  • Minor fix: Make code compatible with PHP 5.2.4
  • Minor fix: Slight improvement of ajax stability
  • Minor fix: Plugin now requires capability "edit_theme_options"

July 19, 2014 - version 2.0.8
  • Fix: Fixed issue with settings not being saved correctly.

July 11, 2014 - version 2.0.7
  • Fix: Fixed issue with some people losing some sidebar settings after update.
  • Minor fix: Use WordPress core functions to get URL to javascript files.
  • Minor fix: Refactor function name to avoid misunderstandings.

July 11, 2014 - version 2.0.6
  • Fixed: Widgets that are registered via old API no longer break the page (again).
  • Fixed: After importing data the widgets page is reloaded to show new sidebars.
  • Fixed: Warnings by BuddyPress about using bp_current_user too early.

July 10, 2014 - version 2.0.5
  • Fixed: Meta box in post editor did show missing sidebars (e.g. after switching the theme)
  • Fixed: PHP warning about strict standards.

July 10, 2014 - version 2.0.4
  • Fixed: Widgets that are registered via old API no longer break the page.

July 9, 2014 - version 2.0.3
  • Fixed javascript errors that happened only on Windows servers.

July 9, 2014 - version 2.0.2
  • Fixed: Notification "Wdit custom sidebars in your Widgets screen" did show up multiple times for some users.

July 9, 2014 - version 2.0.1
  • PHP 5.2 compatibility update.

July 9, 2014 - version 2
  • Initial Release

"Needed a way to have custom sidebars for a hundreds of different pages for a project of mine and this plugin has been a godsend"

Mark - AskTheTrainer.com

"Many thanks for this great and extremely useful tool!"

John

"Have used this to customize sidebars for specific pages in PageLines and Genesis. LOVE it!!!! Easy to use and makes adding unique, custom sidebars to any page a snap."

Sue Cockburn - GrowingSocialBiz.com

"Easy to use and makes adding unique, custom sidebars to any page a snap."

Sue Cockburn - GrowingSocialBiz.com

"Should be installed natively in WordPress."

ygirod

Custom Sidebars Pro lets you set when and where widgets display on your site.

It’s WordPress widgets on steroids and it will transform your site.

Make any widget area replaceable with a simple toggle control.
Make any widget area replaceable with a simple toggle control.

Incredible Control

Set any widget area to change dynamically then create new widget areas to replace them based on post type, page, category, user type, author and more.

Display custom widget areas on every part of your site.

Control everything from the WordPress 'Widgets' page.
Control everything from the WordPress ‘Widgets’ page.

It’s Really Easy

Every part of Custom Sidebars Pro is seamlessly integrated with the WordPress ‘Widgets’ menu for add control and simplicity.

No confusing settings pages or added menu items. Just simple core integration.

Sidebar includes export and import so you can share widget configurations with other sites.
Sidebar includes export and import so you can share widget configurations with other sites.

Quickly Manage Sidebars

Clone widgets across different areas and sync updates for a super fast way to manage complex widgets in multiple places.

Speed up your workflow with import/export to other sites and copy/paste into new areas.

Download Custom Sidebars Pro for next-level customization and control over your WordPress widgets.

To Get Started:

Start by reading the Installing Plugins section in our comprehensive WordPress and WordPress Multisite Manual if you are new to WordPress.

  • If you are installing Custom Sidebars Pro on a single site, simply activate the plugin and you’re good to go!
  • If installed on a multisite network, you can either network-activate the plugin to make it available to all sites, or activate it on a per-site basis. Note that there are no network settings for this plugin.
  • In a multisite install, you can also make it available as a premium plugin only by using our Pro Sites plugin.

To help get you going, here’s a 3 minute explanation of how you can use each of the awesome features this plugin provides:

Now let’s get into the nitty-gritty. :)

Creating a New Custom Sidebar

Once activated on a site, head on over to Appearance > Widgets on that site. All the settings & options are located right there.

Once there, you’ll see that the layout of your widgets area has changed a bit. All available widgets are still shown on the left side as they always have been. But, on the right side, you’ll now see a distinctly new area:

Custom Sidebars Pro New Install
1. New sidebar options
2. Your custom sidebars
3. Your active theme sidebars

1. The new Sidebars section at the top enables you to create a new custom sidebar, or export/import your sidebar configuration (more on that below).

2. The Custom Sidebars section will display the custom sidebars you have created. As this is a new install, there won’t be anything there yet. :)

3. The Theme Sidebars section displays the sidebars made available by your currently active theme, just like you’re used to.

Let’s now create a new custom sidebar so we can see how all that works. Click the Create a new sidebar button in the Sidebars section at the top.

A modal window will pop open where you must enter the name of your new sidebar, and the description (optional).

Custom Sidebars Pro Create Sidebar

If you want to edit the layout of widgets that you’ll be adding to your custom sidebar, check the Advanced – Edit custom wrapper code checkbox at the bottom. That will open a new section in the modal where you can edit the actual HTML used to display the widgets in your new sidebar.

  • Be careful here though: if you’re not sure what you’re doing, you may mess up the layout of your site. For more on the HTML used for widgets, see this article over at JustinTadlock.com

Custom Sidebars Pro Create Sidebar Advanced

Once you’ve entered all the details for your new sidebar, click the Create Sidebar button in the modal. You’ll now see your spanking new custom sidebar appear in the Custom Sidebars section.

Custom Sidebars Pro New Sidebar Created

You’ll notice that there are a few settings options in a row at the bottom of each sidebar:

  • Sidebar Location enables you to specify where this sidebar should be displayed (see the next section).
  • Edit launches the new sidebar modal again, but allows you to edit the current sidebar settings.
  • The Trash can does what you’d expect, but you’ll be asked to confirm you really do want to delete your sidebar.

Now that we have our first custom sidebar, let’s set it up to be able to replace other theme sidebars.

Setting the Sidebar Location

We first need to set things up so that selected theme sidebars can be replaced with our custom one. That’s just too easy: simply check Allow this sidebar to be replaced in any sidebars you want to be able to replace. :)

Custom Sidebars Pro Replace Sidebar

Now click the Sidebar Location link in the bottom row of your new custom sidebar to pop open a modal window where you can select exactly where you want it to appear.

Custom Sidebars Pro Sidebar Location

For each theme sidebar where you have checked Allow this sidebar to be replaced, you’ll see several options for both single entries and archives.

  • In both sections, you can set your custom sidebar to replace your theme sidebars depending on what post category they’re in, and/or the post-types.
  • Note that custom taxonomies are not currently supported in this section. However, you can set the visibility of individual widgets depending on custom taxonomies. See below for details on that.

In each setting, you can select multiple categories or post-types too, so you can really target specific content areas on your site.

Custom Sidebars Pro Multiple Locations

Once you’re done, click Save Changes in the modal window.

  • If you don’t want to save your changes, click Cancel or simply click out of the window to close it.

If you want to check stuff out now on the front-end of your site, drag any widget to a theme sidebar you have set to be replaced, and visit some content to see the magic happen.

You may have noticed something interesting at the top of the Sidebar Location modal:

  • To attach this sidebar to a unique Post or Page please visit that Post or Page & set it up via the sidebars metabox.

Yep, you’ll see a new metabox in the editor of every post-type on your site enabling you to quickly and easily select which sidebar should display for that specific post.

Custom Sidebars Pro Sidebar In Post

Selecting a sidebar here will override what you may have set as its Sidebar Location under Appearance > Widgets. In other words, even if a sidebar has been set to appear only on posts under Appearance > Widgets, you can select it for display on a page here.

Now let’s take a closer look at widget-specific options.

Cloning a Widget

This is a really handy feature that can save you a lot of time if you have widgets with a bunch of complicated options or arrangements of shortcodes, and need to adjust them from time to time.

You can create an identical copy of any widget, complete with all its settings, simply by clicking the Clone button at the bottom of the widget.

Custom Sidebars Pro Clone

The cloned widget will appear immediately below the one you just clicked. Now just drag the clone to any sidebar where you want it.

To make this a real time-saver, your widgets are now linked. That means that any edits you make to one of them will be automatically reflected in the other! This will be indicated by a link icon next to the widget title.

Custom Sidebars Pro Unlink Clone

Hovering your mouse pointer over the link icon will highlight all other widgets that are linked clones.

If you don’t want a widget to be linked anymore to another, simply click the link icon in that widget, and click the Save button in the widget. That one can now be edited independently from other linked clones.

  • Note that once a widget has been unlinked from any clones, it cannot be re-linked.

Important: if you manually add multiple instances of the same widget to sidebar(s), the plugin will assume they are clones and will automatically link them. If you want to configure them independently, click Save in one of them to refresh the page. Then click the link icon in each one you want to be independent of the others.

Widget Visibility

You can set any widget to display or not depending on any combination of user role, special pages (frontpage, archives, 404, etc.), post-type or taxonomies.

To set the visibility for any particular widget, click the Visibility button at the bottom of the widget.

Custom Sidebars Pro Widget Visibility

Then click the Show button to select whether to Show or Hide the widget based on conditions you’ll set next.

Custom Sidebars Pro Show or Hide Widget

Now click the plus (+) sign that appears when you hover your mouse pointer over Show/Hide widget if to open a menu of conditions you can select.

Custom Sidebars Pro Visibility Conditions

As an example, we can set a widget to display only for admins. Once Show has been selected in the previous step, select Roles here.

Then click in the empty field to open another menu where you can select the role you want. If you want to include additional roles in the same rule, simply select them one after the other to add them in.

Custom Sidebars Pro Visibility Role

  • Tip: if you want to set a widget to be visible to logged-in users only, use this rule, and simply select all user roles.

You can include as many additional visibility rules as you need by clicking the plus (+) sign again and adding the new ones.

Custom Sidebars Pro Multiple Visibility Rules

You may also have noticed in the visibility rules illustrated above that there is one for “Membership”. That will appear for selection only if you have our Membership plugin active on your site.

So yes, you can set any widget to display or not depending on the Membership access level of the user visiting your site. Cool huh?

Custom Sidebars Pro Membership Visibility Rule

Features That Transform Your Site

Custom Sidebars Pro brings with it infinite options.

  • Set sidebars based on category
  • Set sidebars based on user level
  • Set archive page specific sidebars
  • Visibility filters
  • Taxonomies
  • Share sidebars
  • Sidebar export
  • Sidebar import
  • Duplicate widget settings with clone
  • Copy and paste
  • Sync configurations across multiple sidebars
  • Integrates with core 'Widgets' settings
  • WPML support
  • Multisite ready
  • Unlimited custom sidebar locations