Beginner's Guide for WordPress / Start your WordPress Blog in minutes

How to Display Different Sidebar for Each Post and Page in WordPress

Do you want to display different sidebars for certain posts and pages on your WordPress site?

You often see the same sidebar used across an entire website. However, sometimes you may want to show different sidebar content on some of your posts and pages.

In this article, we will show you how to create and display different sidebars for each post and page in WordPress.

How to Display Different Sidebar for Each Post and Page in WordPress

When Would You Need Different Sidebars in WordPress?

When you created your WordPress website, you may have set up a sidebar with useful widgets that add features to your site and help visitors find interesting content.

If your WordPress theme has a sidebar then by default it’ll look the same on all your posts, pages, categories, and archive pages.

However, you may want to display different sidebar widgets on certain posts and pages. For example, you might show different content in the sidebar of your most popular posts, or display ads that are more relevant to a particular page.

You could even use different contact forms depending on the page’s content, and the kind of visitor that content appeals to. This can get you more signups.

Having said that, let’s see how to create and display a different sidebar for each post and page in WordPress. Simply use the quick links below to jump straight to the method you want to use.

Method 1. Displaying Different Sidebars for Each Post and Page in WordPress (Easy)

If your theme has a sidebar widget, then you can easily create multiple sidebars using Easy Custom Sidebars. This plugin lets you build as many custom sidebars as you like and assign then to different pages, posts, categories and tags.

Note: This plugin hasn’t been tested with the latest release of WordPress. However, it worked perfectly during our testing.

The first thing you need to do is install and activate the Easy Custom Sidebars plugin. For more details, see our step by step guide on how to install a WordPress plugin.

Upon activation, go to Appearance » Sidebar Replacements.

Visit the Appearance » Sidebar Replacements Page to Create Custom Sidebars

First, you need to type in a name for the custom sidebar.

After that, open the ‘Sidebar to Replace’ dropdown and choose the theme sidebar that you want to replace, such as blog sidebar, or sidebar 1. The options you see will vary depending on your WordPress theme.

Provide a Name for Your Custom Sidebar

Next, you’ll need to select where you want to show the custom sidebar on your website. In the left-hand menu, you’ll see all your posts, pages, categories and tags.

Simply check the box next to all the areas where you want to show the custom sidebar. When you’re happy with how it’s set up, click on ‘Add to Sidebar.’

Select the Areas Where You Want the Custom Sidebar to Be Displayed

WordPress will now add all these locations to the Sidebar Replacements section.

Now it’s time to build your first custom sidebar, by clicking on ‘Create Sidebar.’

How to display different sidebars in WordPress

Adding Widgets to Your Custom Sidebars

Next, you’ll need to add widgets to your custom sidebar by heading over to the Appearance » Widgets page.

You’ll see your custom sidebar next to the theme’s default sidebars.

Head Over to the Appearance » Widgets Page

You can now go ahead and add widgets to your custom sidebars. For more details, see our step by step guide on how to add and use widgets in WordPress.

The plugin will now show the different sidebars based on your settings. You can visit different posts, pages, categories and tags to see the sidebars in action.

Custom Sidebar Preview

Method 2. Creating a Different Sidebar with a Page Builder Plugin (Works With Any WordPress Theme)

If your theme doesn’t support sidebars, then you can still create different sidebars using a drag and drop page builder plugin.

SeedProd is a the best landing page builder plugin for WordPress. With this plugin, you can create any type of custom page without writing any code. It also has dozens of professional templates that you can easily edit and fine-tune using the drag and drop builder.

When designing a custom page, you can choose a layout that has a sidebar.

Choose a Layout with a Sidebar

You then simply find the blocks you want to show on that sidebar, and add them using drag and drop.

SeedProd has all the blocks and features you’d expect from a powerful page builder such as optin forms, social profiles, countdown timers, contact forms, buttons, various content blocks, and more. This makes it easy to create powerful and unique sidebars for your WordPress blog.

Drag the Blocks You Wish to Use Right onto the Sidebar

To learn how to use the SeedProd page builder plugin on your website, see our guide on how to create a custom page in WordPress.

We hope this article helped you learn how to add different sidebars to each post or page in WordPress. You may also want to learn how to create a custom Instagram feed in WordPress, or see our expert pick of the best contact form plugins.

If you liked this article, then please subscribe to our YouTube Channel for WordPress video tutorials. You can also find us on Twitter and Facebook.

Disclosure: Our content is reader-supported. This means if you click on some of our links, then we may earn a commission. See how WPBeginner is funded, why it matters, and how you can support us.

The Ultimate WordPress Toolkit

Get FREE access to our toolkit – a collection of WordPress related products and resources that every professional should have!

Reader Interactions

46 CommentsLeave a Reply

  1. can you use this to add sidebar images to both sides of the page and have different images on different pages?

    thanks

    • You can use this to have a different image on different pages but for the sidebars of your site normally, it would depend on the specific theme you are using for if they have a second sidebar for the other site or if one would need to be added with a page builder or custom code.

      Admin

  2. Wow, you just saved my day! looking for this solution and I got exactly what I need. Thank you for the post.

  3. Hello! My Sidebar has disappeared. It was displaying before it got missing. However, i din’t change the theme.

    The message reads “Your theme has 1 widgets area but this particular page doesn’t display it”.

    • You would need to reach out to your theme’s support for displaying the widgets properly on that page.

      Admin

  4. This is exaaaaactly what I needed for my portfolio website.

    Thanks WP Beginner. You guys are the best, always!

    I have been a huge user of your resources for over three years now, and your website is one of my most opened bookmarks in all my browsers (in fact, it’s usually just open even when am not using it looking for WP info ;-)).

  5. Hi ! I have a problem in my wordpress website that the sidebar on shop page is not showing up but when i custimize the shop page it still show but not showing on default shop page .Please tell me why this is happening ?

    • You would want to start by reaching out to your theme’s support to see if this is a known issue with your theme and they should be able to assist.

      Admin

  6. We tried this plugin but it wasn’t really usable for many sidebars. We had a hundred posts where the sidebar should contain more information about each product. Already after 10 sidebars the system became slower and slower, until it finally became unbearable with 20 or 30 sidebars.
    We then used a different, differently designed solution that didn’t require a sidebar.

  7. What happens to the posts/pages which have multiple categories selected?! or with several tags?
    For example, I want a custom category for the news section and another for tourism, but what happens when a post appears on both of these categories?

    • You would need to check with the plugin for what would happen when a conflict like that happens. If you have multiple posts in different categories then you may want to take a look at how you have your categories themselves set up

      Admin

  8. hello, I am trying to find a solution to add embed code to the sidebar of a post.

    what i would like to have is a plugin that allow you to add a html or txt widget to the side of one single post, I have spent some time trying to find this but can not find! I have a website where every post is a different location and it needs a different map each post.

  9. This one seems dead Syed, plugin not updated in 2 years so likely missing a lot of integration since WordPress has undergone some major core upgrades over the last 12 months. Is there a more recent solution for sidebars?

    • Thank you for letting us know, we’ll certainly take a look at this article and possible alternatives

      Admin

  10. Is it possible without any plugin, on Genesis framework? because I have purchased NEWS PRO Genesis Theme.

  11. Thank you so much! I have been driving myself mad trying to fix the sidebar then I found your video! Thankyoooou!!

  12. Really nice and detailed tutorial you have here. But i don’t know why after following it my sidebars are still not appearing

  13. Hi, great video! What about creating a separate sidebar for the HOME PAGE? Is that possible?

  14. Is there any way to show no sidebar on a certain page at all?

    Remember, the other pages will have to show the sidebar.

  15. Is there a way to change the sidebar on certain pages and have it removed entirely on others? Before I download and activate I would like to know if removing the sidebar completely and making the page width 100% as easy as making different sidebars for different pages

  16. Hello – I have a sidebar on my weekly blog page but when I click on read more, it takes me to the full page width and doesn’t show the sidebar. I have looked everywhere to try and do this. Can anyone help please?

  17. I tried to use the easy side bar and it does not work! I want to put a side bar only on specific pages and this put it on ALL of them.

    I had learned how to use the original appearance > widgets and had right side bar on certain pages. I just added a new page to my web site and got the side bar that I did NOT want. I tried to add a left side bar to ONLY my new page and could not do it. So I looked at this video and got the plug-in easy side bars and it does not add a left side bar to ONLY the new page nor does it help me remove the right side bar [done through appearance > widgets] from the new page. Not real helpful.

  18. Hi, I need small help that you could do. I’m planning to buy managed wordpress on godaddy. I write posts in two languages. 1 is supported by adsense and one is not. I would like to place ads on posts using this on supported only language posts. Can I do this ? Can i use this to place ads? Please could you tell me?

  19. Hi! Can I add more sidebars with this plugin? Do I have to replace my existing sidebars with these new sidebars? For example, I have now 3 optional sidebars and I would like to have more than that. Is that possible somehow? Thanks!

  20. I installed this plugin and now my site doesn’t work at all!! How do I fix this, it is really important! Please advise.

    Jennifer

    • Hi Jennifer,

      You can manually delete the plugin using FTP. Connect to your website using FTP client and go to /wp-content/plugins/ folder inside it you will find easy-custom-sidebars folder. Delete it and then login to your WordPress site. You can reinstall the plugin again if you want to give it another try.

      Admin

      • Hello – I have the same problem. The only choices I get is to replace the Footer Widgets 1 – 4. There are no other choices. Any ideas? I’d like to add a sidebar to my products thats different from my blog sidebar. I am using Divi.

        Thank you, Alex

  21. Useful! I definitely want the ability to change my sidebar at times – my theme provides up to 8 choices, including full width (ie. none) for my pages but only ‘on’ or ‘off’ for all posts. So my question is, specifically for each individual post, could I chose 1. to add a sidebar of my choosing or 2. to have no sidebar at all (ie. full width)? Thanks

  22. Wow! This feature is something I’ve been wanting to do for a while. As usual, wpbeginner, makes it easy and fun! Thank you!!

Leave a Reply to Muhammadd Farhan Cancel reply

Thanks for choosing to leave a comment. Please keep in mind that all comments are moderated according to our comment policy, and your email address will NOT be published. Please Do NOT use keywords in the name field. Let's have a personal and meaningful conversation.