Trusted WordPress tutorials, when you need them most.
Beginner’s Guide to WordPress
WPB Cup
25 Million+
Websites using our plugins
16+
Years of WordPress experience
3000+
WordPress tutorials
by experts

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

Do you want to show different content in your WordPress sidebar for certain posts and pages?

A standard, one-size-fits-all sidebar is often a missed opportunity. By customizing the sidebar for specific content, you can boost user engagement and increase conversions.

While this sounds technical, we’ve seen firsthand how the right tools make it easy to create and manage different sidebars for your site.

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

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

💡Quick Answer: How to Display a Different Sidebar For Certain Pages

In a hurry? Take a quick look at the 3 easy ways to add different sidebars and choose the one that suits your needs:

  • For New Sites or Full Customization (Recommended): Method 1 is best if you’re starting a new website or want complete design control. It uses a theme builder to create custom sidebars and templates from scratch.
  • For Classic Themes: If you are using a traditional WordPress theme, Method 2 is for you. It uses a free plugin to add multiple sidebars and assign them to different pages.
  • For Block Themes: If your site uses a modern block theme (like Twenty Twenty-Four), then jump to Method 3. It shows you how to use the built-in Full-Site Editor to create and manage sidebars.

Keep in mind that the method you choose should depend on the type of theme you are using on your website.

Why Display a Different Sidebar For Certain Pages or Posts in WordPress?

The main reason to display a different sidebar is to provide a more relevant and targeted experience for your visitors. This helps improve user engagement, increase conversions, and make your site more effective.

Instead of showing the same generic content everywhere, you can tailor the sidebar to match the specific page or post a user is viewing.

For example, you can show category-specific widgets on your blog posts, display product-related information on your store pages, or showcase social media feeds on your About page.

Custom sidebars also let you create a more focused experience by presenting relevant links, ads, or call-to-action buttons.

With that said, let’s look at 3 methods to add different sidebars for posts and pages in WordPress. You can use the quick links below to jump to the method that suits you most:

Out of all the methods we’ve tried for this tutorial, we recommend creating a custom theme the most. The reason is that it provides the most flexibility and control over your WordPress site’s design.

That being said, we only suggest following this method if you’re in the beginning stages of building your site or you’re interested in properly switching your WordPress theme. That’s because changing themes can significantly impact your existing content and layout.

If you don’t want to switch themes, then you can skip to method 2 (classic themes) or method 3 (block themes).

For this method, you will need a WordPress page builder plugin.

Based on our experience testing dozens of theme builders, we recommend using a tool like SeedProd or Thrive Architect. They offer far more control and customization options than WordPress’s built-in features.

Several of our partner brands use SeedProd because it’s beginner-friendly and reliable. You can learn more about the tool in our SeedProd review.

Step 1: Install and Activate SeedProd

First things first, go ahead and install the SeedProd plugin on your website. If this is your first time, then head over to our beginner’s guide on how to install a WordPress plugin.

Note: For this tutorial, we will use the Pro version of SeedProd for demonstration purposes. While there is a free version, it doesn’t come with the theme builder feature, which is necessary for creating a custom theme from scratch.

Once done, insert your SeedProd license key in the appropriate field and click ‘Verify key.’

Entering the SeedProd license key
Step 2: Choose a Theme Template Kit

Next, go to SeedProd » Theme Builder.

Then, click on the ‘Theme Template Kits’ button.

Accessing SeedProd's Theme Template Kits

You should now see all of the theme template kits available. Feel free to use any of them as a base for your custom theme.

You can also hover on each kit and click on the magnifying glass button to view the theme more closely.

Previewing a website starter kit using SeedProd

For this tutorial, we recommend choosing a theme kit that already includes a sidebar design.

This allows you to duplicate the existing ‘sidebar template part’ and customize it, which is much faster than building a new one from scratch.

For example, the Curbside Food Truck theme kit has a single post template that already includes a sidebar:

The sidebar on the Curbside theme kit

Once you’ve decided on a kit, just hover your cursor on it.

Then, click on the orange checkmark icon when it appears.

Selecting the Curbside SeedProd theme kit

Now, wait for a few moments for SeedProd to set up your theme.

Step 3: Duplicate and Edit the Sidebar Template

After that’s done, you should be redirected to the ‘Theme Builder’ settings page again and see that SeedProd has created several theme templates for your WordPress website.

The Theme Templates page on SeedProd

We can now start editing your theme template.

Let’s say you want the sidebar on your blog category archive pages to look different from the one on your blog posts. In that case, you need to create 2 different sidebar theme templates.

First, find the ‘Sidebar’ theme template in your kit. This is the default sidebar that your theme uses when a page requires a sidebar.

For illustration, we will duplicate this template and then edit it to make it different from the original version. To do this, you can hover over the template and click ‘Duplicate.’

Duplicating a SeedProd theme template part

You should now see a copied version of your sidebar template.

Here, go ahead and click ‘Edit Design.’

Editing a SeedProd theme template part
Step 4: Customize Your New Sidebar

You will now arrive at the SeedProd editor. If the sidebar template looks wider than what you’d expect, don’t worry. The size will adjust as the sidebar is added to a page later on.

In our chosen theme, the default sidebar template displays a search bar, a newsletter subscription call-to-action, links to our blog category pages, and a preview of our Instagram feed.

Editing the sidebar theme template part in SeedProd

We’re going to replace some of these elements. These blocks have been organized in groups or rows, so we can delete multiple blocks in a single row at once rather than remove them one by one.

To do this, you can just hover over an element until a dark blue line appears over an entire group of blocks. Then, click on the trash ‘Delete Row’ icon at the top of the element.

Deleting an existing row in SeedProd

To create a new row, hover over the element immediately above where you want the new row to appear. When a dark blue line appears, click on the ‘+’ icon that shows up below it.

Then, you need to click on the ‘+’ icon below.

Adding a new row in SeedProd

Now, you can choose a layout for the row.

We’re going to pick the first option because that’s the most suitable for our needs.

Choosing a row layout in SeedProd

This is where you can start having fun and adding all kinds of blocks to your sidebar.

SeedProd has tons of options to choose from, from a countdown timer and an image hotspot to a progress bar and more. You can use the search bar or scroll down on the ‘Blocks’ tab to find the block you need.

Once you’ve found a block you like, just drag and drop it to the row.

Dragging and dropping blocks in the SeedProd editor

For the sake of example, we’ve decided to add the ‘Testimonials’ block.

You can use this to display a positive review from a customer as social proof. If you want to learn how to add one too, you can read our guide on adding rotating testimonials in WordPress.

Creating a rotating testimonial section in SeedProd

Feel free to add more rows and blocks at this point.

After you’re happy with the sidebar’s design, just click on the arrow icon next to the ‘Save’ button at the top right corner of the page. Then, click ‘Publish.’

Publishing a SeedProd theme template part
Step 5: Add the New Sidebar to a Page Template

Now, let’s go ahead and add this new sidebar to a post or page template. To do this, go back to SeedProd » Theme Builder on your WordPress dashboard.

The theme kit we’re using has 2 theme templates that feature a sidebar: ‘Single Post’ and ‘Archives, Search Results.’ The first is for WordPress posts, while the second is for all archive pages, including category archives, as well as the search results page.

Both templates currently use the same sidebar template.

In this case, we want the ‘Archives, Search Results’ template to use the new sidebar we just created. So simply locate the template you want to edit and click ‘Edit Design.’

Editing the theme template page in SeedProd

In the SeedProd editor, hover over the area with the sidebar, and when an orange toolbar appears on top of it, click on it.

The left settings panel should say ‘Editing: Template Parts.’

Selecting a theme template part in a SeedProd page

In the Template Part dropdown menu, you need to select the sidebar template you just created.

You should now see that your new sidebar has been added to your page template.

Choosing the duplicated SeedProd template part

After that, just click ‘Save’ to publish your changes.

Step 6: Activate Your SeedProd Theme

At this stage, you can create more sidebars and add them to other pages by repeating the same steps as before.

Once you’re happy, just go back to SeedProd » Theme Builder again, and toggle on the ‘Enable SeedProd Theme’ setting until it says ‘YES.’ This will activate your SeedProd theme on your website.

Activating the SeedProd theme

And that’s it!

Here’s what our custom sidebar looks like:

The new sidebar created with SeedProd

Method 2: Show a Different Sidebar on Certain Pages With a Free Plugin (Classic Themes)

Most classic WordPress themes have predefined sidebar areas, and they typically show the same sidebar across your entire site.

While this works, it can feel limiting if you want to display unique content for different sections.

Thankfully, you can easily get more control by using a free plugin. We recommend Lightweight Sidebar Manager. This plugin lets you create unlimited custom sidebars and assign them to specific posts, pages, categories, and more.

Step 1: Install the Lightweight Sidebar Manager Plugin

The first thing you need to do is install and activate the Lightweight Sidebar Manager plugin. For more details, see our step-by-step guide on how to install a WordPress plugin.

Step 2: Create a New Custom Sidebar

Upon activation, you need to go to Appearance » Sidebars. To create the first sidebar, click on the ‘Add New’ button.

Adding custom sidebars to your WordPress website

You can now type in a title for the new WordPress sidebar. This is just for your reference, so you can use anything you want.

With that done, open the ‘Sidebar To Replace’ dropdown menu. This setting lets you choose which of your theme’s default sidebar areas (like ‘Main Sidebar’ or ‘Blog Sidebar’) will be replaced by your new custom one.

Choose the location where you want to show the sidebar. The options you see may vary depending on your WordPress theme. 

Replacing the built-in sidebar provided by your WordPress theme
Step 3: Configure Display and Exclusion Rules

Now, you can control where the sidebar appears by creating inclusion or exclusion rules. 

To create an inclusion rule, just open the ‘Display On’ dropdown and choose the pages, posts, custom post types, or categories where you want to use the sidebar. 

For example, you might add the sidebar to a specific page, such as your 404 error page, the author archive, or blog page.

Adding a custom sidebar to the WordPress 404 page

Another option is using the sidebar for a particular page, post, or category by selecting ‘Specific Pages/Posts/Taxonomies.’

This adds a box where you can type in the page, post, or category.

Creating a custom sidebar for WordPress categories

To create more inclusion rules, simply click on the ‘Add Display’ Rule button.

This adds a section where you can create the new inclusion rule.

Adding display rules for custom sidebars in WordPress

If you prefer, then you can create exclusion rules instead. For example, you may want to show the sidebar on every page except the homepage. 

You can also combine inclusion and exclusion rules to control exactly where the sidebar appears on your WordPress blog.

To create an exclusion rule for the sidebar location, just click on the ‘Add Exclusion Rule’ button.

Displaying different sidebars for pages and posts in WordPress

In the new ‘Do Not Display On’ section, open the dropdown menu and select the page or post that shouldn’t use this sidebar. 

You can also exclude the sidebar from WordPress pages that have a specific category by following the same process described above.

Displaying different sidebar for each page and post in WordPress
Step 4: Set User Role Visibility (Optional)

After deciding where the sidebar will appear, you may want to show different content to different users.

For example, if you have a membership site, then you might want to use a different sidebar for visitors than for logged-in members. 

To do this, open the ‘User’ dropdown and choose a role from the dropdown menu. Now, only people with this specific user role will see the sidebar. 

Displaying different sidebar widgets on each WordPress page or post

Finally, you may want to type in an optional description. This will only appear in the WordPress dashboard, so it’s a good way to share information with other admins or users.

If you are going to create lots of sidebars, then you can also use this field to leave yourself notes and helpful reminders.

Adding a helpful description to a custom sidebar in WordPress

When you are happy with the information you have entered, simply click on ‘Publish.’

Step 5: Add Widgets to Your New Sidebar

With that done, go to Appearance » Widgets. You will now see all the widget areas that your theme supports by default, plus the new sidebar you created in the previous step.

Adding content to a sidebar or similar widget-ready area

You can now go ahead and add widgets to the sidebar, just like any other widget section.

For step-by-step instructions, please see our guide on how to add and use WordPress widgets

Adding content to a custom WordPress sidebar

When you are happy with how the sidebar is set up, click on ‘Update.’

Now, if you visit your WordPress blog, you will see the new sidebar live.

An example of a custom WordPress sidebar, created using a plugin

To create more theme sidebars, simply keep repeating these steps. 

Method 3: Add Different Sidebars to Specific Templates in WordPress Full-Site Editor (Block Themes)

If you use a block theme, like the Twenty Twenty-Four or Hestia theme, then you can use the full-site editor to create custom sidebars and place them wherever you like.

We will use the Twenty Twenty-Four theme to demonstrate this method.

The great thing about block themes is that they all use the same standard tool: the Full-Site Editor. While the specific templates inside each theme can be different, the editing process is consistent.

This means you don’t need a special sidebar plugin to add a different sidebar to your pages or posts.

Step 1: Open the Full-Site Editor

First, head to Appearance » Editor in your WordPress admin.

Selecting the Full-Site Editor from the WordPress admin panel

Here, you will see some menus to customize your block theme.

To create a new sidebar, you have to select ‘Patterns.’

Opening the Patterns menu in full-site editor
Step 2: Duplicate the Sidebar Template Part

Now, click ‘All template parts.’

Template parts are reusable blocks of content, like a header, footer, or sidebar, that can appear across multiple pages of your site.

You should see a template part called ‘Sidebar.’ Go ahead and click on the three-dot menu, and then select ‘Duplicate.’ This will make a copy of the sidebar template that you can then customize.

Duplicating the Sidebar template in full-site editor

In the new popup, give your new sidebar a name to easily identify it later.

In the ‘Area’ section, select ‘General.’ Once done, just click ‘Duplicate.’

Creating a general sidebar template part in full-site editor
Step 3: Customize the New Sidebar

You should now see your newly duplicated sidebar in the list of template parts.

Simply click on the thumbnail to open the editing interface.

Editing the new sidebar template in full-site editor

Now, you can start customizing your sidebar, add more blocks, or configure them to match your website design. The full-site editor works the same way as the block editor in that you only need to drag and drop blocks onto the template part.

In our case, we’ve decided to display our most recent posts, a call-to-action button to subscribe to our email list, and a shape divider to separate these elements.

Customizing the new sidebar in the full-site editor

Once you’re happy with how the sidebar looks, click on the ‘Save’ button.

Step 4: Add the New Sidebar to a Page Template

Now, we need to add this new sidebar to a page template.

First, go back to the full-site editor main menu. Then, click ‘Templates.’

Opening the Templates menu in full-site editor

The Twenty Twenty-Four template has several page templates with a sidebar, but they’re all using the same sidebar template part. Let’s change one of them with our newly created sidebar.

To do this, select a page template with a sidebar. In our case, we will select ‘Page with Sidebar’ so that the sidebar on regular pages looks different from the one on single WordPress posts.

Choosing the page template with sidebar in full-site editor

In the editing interface, click on the ‘Sidebar’ section.

On the block toolbar, click on the three-dot menu and select ‘Delete’ to remove the old sidebar.

Deleting the old sidebar template in full-site editor

Next, click on the ‘+’ icon on that same section.

After that, locate and select ‘Template Part.’

Adding a template part block in the full-site editor

Once you’ve done that, go ahead and click ‘Choose.’

This will allow you to choose the sidebar you just created.

Choosing a template part to add to the page using the full-site editor

A new popup will appear, showing you the different template parts the theme has.

Here, just click on the new sidebar template.

Choosing the new sidebar in the full-site editor

At this stage, you can continue customizing the template if needed.

Then, just click ‘Save.’

Saving the page template in the full-site editor

You have now customized a page template and added a custom sidebar to it.

Step 5: Assign the New Template to a Page

However, we need to make sure that this template is actually used on your website. To do this, go back to the full-site editor main menu and click ‘Pages.’

Opening the Pages menu in full-site editor

Next, choose a page you want to add the sidebar to.

For the sake of example, we will go with our ‘Privacy Policy’ page.

Opening the Privacy Policy page in full-site editor

Now, click on the settings icon on the top left side of the page and click on ‘Pages’ in the page settings panel.

After that, you need to select ‘Swap template.’

Swapping the page template for the Privacy Policy page in full-site editor

Once you do that, a popup will appear.

Here, just select the page template with the new sidebar.

Choosing the new template with the new sidebar in full-site editor

And that’s it! Feel free to repeat the same steps to create a new custom sidebar and implement it on different pages and posts.

Here’s what our sample privacy policy page looks like with the new sidebar:

A Privacy Policy page with a sidebar

Frequently Asked Questions About Custom Sidebars

Here are some questions that our readers have frequently asked about adding a custom sidebar to specific posts or pages in WordPress:

1. How can I create a unique sidebar for just one specific blog post?

If you are using a plugin like Lightweight Sidebar Manager, you can create a new sidebar and set the ‘Display On’ rule to ‘Specific Pages/Posts/Taxonomies.’ Then, simply type in the name of the exact post you want it to appear on.

If you’re using a theme builder like SeedProd, you can create a new page template, assign your custom sidebar to it, and then apply that template to the individual post from the post editor.

2. Will having many different sidebars slow down my website?

Generally, no. The number of sidebars you create has a minimal impact on site speed. Performance is more dependent on what you put inside them.

A sidebar filled with many heavy widgets, like large images or complex scripts, can slow down a page. However, the sidebar management plugins and tools themselves are lightweight and optimized for performance.

3. How do custom sidebars work on mobile devices?

Most modern WordPress themes are responsive. This means that on smaller screens, such as phones, the sidebar content isn’t displayed on the side. Instead, it is “stacked” and moved to appear below the main page content.

Your custom sidebars will still be visible to mobile visitors, but they will need to scroll down past the article to see them.

4. Can I remove the sidebar from a specific page instead of replacing it?

Yes. Most WordPress themes include a ‘Full-Width’ or ‘No Sidebar’ page template. You can select this template from the page editor to remove the sidebar from that specific page.

If your theme doesn’t have this option, a theme builder like SeedProd (Method 1) gives you full control to create templates without sidebars.

We hope this article has helped you learn how to show different sidebars on pages and posts in WordPress. You may also want to check out our guide on how to change the sidebar side in WordPress and our expert picks of the best Canva alternatives for website graphics.

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. Here's our editorial process.

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

55 CommentsLeave a Reply

  1. I have a technical section on my blog, which is the majority, and I write technical articles on various topics. The minority part is private, where I write my own opinions on anything (politics, personal life, sports). In elementor, I created a different header and a different footer for both sections so that it was graphically separated. I just needed to finish another menu. I will try your instructions so that both the technical and personal sections have a completely different structure. Thank you very much for the instructions.

  2. Wow! I never knew i could have different sidebars!
    This is great feature for different categories for my use. Thank you for this guide i will definitely put it to good use!

  3. 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

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

  5. 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

  6. 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 ;-)).

  7. 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

  8. 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.

  9. 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

  10. 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.

  11. 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

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

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

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

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

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

  16. 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

  17. 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?

  18. 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.

  19. 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?

  20. 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!

  21. 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

  22. 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

  23. 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

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.