If you have an EWU WordPress site and have wanted to display different sidebars on different pages or even posts, now you can. With the Genesis Simple Sidebar add-on you can create an unlimited number of sidebars that can contain completely different content of your choosing. Let’s dig in and see how flexible it can get with Genesis Simple Sidebars!
Primary Sidebar Widget Area
The primary sidebar widget area has traditionally been used to contain general content such as the search box, most recent posts, tags, and archives common to that of a WordPress blog. Although the functionality is useful, it was limiting in that the sidebar would display on every page, post, etc. See Fig. 1.
Genesis Simple Sidebars
With Genesis Simple Sidebars, you can customize sidebar content based upon the architecture of your site and natural content flow. Rather than having to choose and prioritize what content receives top billing on the sidebar, you can promote the most important sidebar content exactly where you want it.
IN THIS TUTORIAL YOU WILL:
- Create a Genesis simple sidebar widget area
- Add content to the Genesis simple sidebar
- Assign the rules to display the Genesis simple sidebar
From the WordPress administration dashboard go to Genesis > Simple Sidebars to create your first sidebar. Give it a name, unique id, and a appropriate description. In this example I have given it a name of “Sample Page Sidebar” with a corresponding ID of “sample-page-sidebar” and short description. Click the Add New Sidebar button. It will then be added to your list of current sidebars.
Add Content to the New Sidebar Widget Area
Now that you have a new widget area, let’s put some content in it different from what the primary sidebar contains. From the WordPress administration dashboard go to Appearance > Widgets. From the widgets available select the one you want to display on your new sidebar. For the purpose of this tutorial I’ve selected to display the Genesis Featured Posts widget. I click the the Genesis – Featured Posts widget to display the widget areas, then select the widget area I created above named Sample Page Sidebar and click the Add Widget button. NOTE: If you called it something else in the previous step, the name will be different.
Add Sidebar to Page or Post
Now that we have a new sidebar widget area with content in it, we can display it on any page or post that we’ve created in our WordPress site. In this example, I would like to display the contents of the Sample Page Sidebar widget area on the page called Sample Page.
In this example I’ll go to Pages > All Pages and select Sample Page as the page that I would like to display the Sample Page Sidebar content into. In the edit window, scroll down on the lower right of the browser window and change the primary sidebar from Default to the name of our new sidebar Sample Page Sidebar. Click the Update button.
The final result should be that your new Genesis Sidebar displays in the page or post that you assign it to. I’ve included a final screen capture to denote the differences in the sidebars between the home page with the default sidebar and the Sample Page sporting the Sample Page Sidebar.