What Is a Sidebar? Here’s How to Create One in WordPress

Advertisements

Creating a sidebar in WordPress is quite straightforward, especially for users of the Twenty Twenty-Three theme or newer versions. You don’t even need to use an additional plugin.

To add a sidebar to your WordPress website, you only need to use a few built-in blocks from the Gutenberg editor.

So, if you’re already familiar with using the Gutenberg block editor, this will certainly make the sidebar creation process much smoother. Follow this guide to learn how to display a sidebar in WordPress!

Advertisements

What is a Sidebar and Its Functions?

A sidebar is an additional area on a website, typically located to the right or left of the main content. Usually, a sidebar template is already available in older WordPress themes.

What is a Sidebar and Its Functions?

However, if you install WordPress and use the latest default theme, namely Twenty Twenty-Three, the sidebar does not automatically appear.

Furthermore, adding one might be a bit challenging. This is because sidebars were traditionally managed through the Widgets feature, a menu you won’t find in the latest WordPress themes.

Sidebars are no longer a default feature in many themes because many modern websites prefer a sidebar-free design. This allows users to focus entirely on the main content.

However, you might still need a sidebar for specific reasons. Here are some functions of a sidebar that many people still find valuable:

  1. Supplementary Content: Sidebars are often used to display additional content or features that are not part of the main page content.
  2. Enhanced Navigation: A sidebar can display navigation menus, lists of categories, tags, or archives to help visitors explore the site.
  3. Widget Integration: In WordPress, the sidebar is a prime area for placing widgets. Widgets are small content blocks that can display various types of information or features, such as a calendar, a list of recent posts, recent comments, and more.
  4. Promotions and Ads: Many sites use the sidebar to display advertisements, promotional banners, or affiliate links to generate revenue.
  5. Contact and Social Media: A sidebar can display contact information, a newsletter subscription form, or social media icons to make it easy for visitors to get in touch or follow the site’s social accounts.
  6. Increased Engagement: By displaying relevant content, a sidebar can increase the time visitors spend on your site and encourage them to explore more content.

Given the importance of a sidebar as outlined above, you can add one to your WordPress site by following the steps below.

How to Create Sidebar in WordPress without Plugin

Creating a sidebar in WordPress is divided into 4 steps: (1) creating a Template Part, (2) configuring the Template Part’s appearance, (3) inserting the Template Part into the sidebar framework, and (4) adjusting the sidebar’s appearance.

Advertisements

Step 1: Create a Template Part

For this example, we’ll create a sidebar containing archives and latest posts on our website. The first step is to create a Template Part. Here’s how:

  1. From the WP Admin dashboard, click on the Appearance menu > select the Editor option.
    How to Create Sidebar in WordPress without Plugin
  2. Choose the Patterns option > click the [+] icon > select Create template part.
    How to Create Sidebar in WordPress without Plugin
  3. In the Name field, enter a name for your template as needed. Here, we’ll use Sidebar Example. For the Area, choose General > click Create.
    How to Create Sidebar in WordPress without Plugin
  4. Next, add a block by clicking [+] > choose the Heading block. This block will be used to create a title for a menu section in the sidebar.
    How to Create Sidebar in WordPress without Plugin
  5. We’ll enter the text Archive for the title > change it to H4 > once done, press Enter to add a block below it > add the Archives block.
    How to Create Sidebar in WordPress without Plugin
  6. After the list of archives appears, we’ll add the text Latest Posts > press Enter to add a block below it > then insert the Latest Posts block. Your existing posts will now appear in a list.
    How to Create Sidebar in WordPress without Plugin

At this stage, the content for the sidebar is ready. You can also add other elements to the sidebar as needed, such as social media widgets, a calendar, a form, and so on.

Step 2: Configure the Template Part’s Appearance

Next, to refine your sidebar in WordPress, you need to adjust the appearance of the template part you just created. Follow these steps:

  1. To configure the block, click Settings in the top right > then adjust the settings as needed. Here, we are enabling Display author name and Display featured image > for Number of items, we’ll change it to 3.
    how to create a sidebar in wordpress
  2. Once that’s done, you need to group these blocks together. Here’s how:
  3. Open List View (1) in the top left > select all the elements of your Template Part > click the three dots > choose Group.
    how to create a sidebar in wordpress
  4. Open Settings in the top right > under the Content and Wide sections, change the size to match your website’s width. We are using 1200 here.
  5. That’s it! At this point, the Template Part is complete.

Next, you need to insert the Template Part you’ve created into the sidebar framework.

Advertisements

Step 3: Insert the Template Part into the Sidebar Framework

The next step in creating a sidebar in WordPress is to place your Template Part into a sidebar structure. Here’s how to create that structure and fill it:

  1. In the WordPress site Editor, select the Templates menu. > Since we want to apply this to every article, we’ll choose Single Posts > click the Edit icon.
    how to create a sidebar in wordpress
  2. Open List View in the top left > select all elements of the Single Post except for the Header and Footer > click the three dots > choose Group.
    how to create a sidebar in wordpress
  3. Once done, click the newly created Group block > select Add before to add a new block above it. A Paragraph block will appear by default.
  4. Change the Paragraph block to a Columns block by clicking on it > click the [+] icon > select the Blocks tab > insert the Columns block.
    how to create a sidebar in wordpress
  5. Choose the 66 / 33 column layout to add a sidebar on the right side. This layout creates two columns, with the right one being narrower.
    how to create a sidebar in wordpress
  6. Next, drag the Group block containing your Single Post elements into the first, larger column.
    how to create a sidebar in wordpress
  7. Once that’s in place, click the [+] in the second column > insert the Template Part block > click Choose.
    how to create a sidebar in wordpress
  8. Select the Template Part you created earlier > your sidebar will now appear on the right.
    how to create a sidebar in wordpress

Once the Template Part has been inserted into the sidebar framework, you need to tidy up the sidebar’s appearance in WordPress.

Advertisements

Step 4: Adjust the Sidebar’s Appearance

The final step in creating a sidebar in WordPress is to adjust its appearance, including the background color, padding, and other styling.

  1. In the Single Post editor, click on the Columns block > click the three dots > select Group.
    creating a sidebar in WordPress
  2. Open Settings on the top right > enter the Content and Wide size to match your website’s width. We are using 1200 here.
  3. Next, open List View > select the Group block that contains the sidebar elements > click Settings in the top right > select the Style tab (4) > change the Background color > in the Padding section, add a value of 1.
    creating a sidebar in WordPress
  4. And you’re done! You have successfully created a sidebar.
    creating a sidebar in WordPress

Of course, the sidebar’s design is still basic and can be further refined. You can adjust the appearance to match your preferences.

Advertisements

Have You Successfully Created Sidebar in WordPress?

That concludes our tutorial on how to create a sidebar in WordPress by leveraging the built-in blocks of the Gutenberg editor. This method is particularly helpful for those using the Twenty Twenty-Three WordPress theme.

By adding a sidebar, you can hopefully enhance your website’s performance. To monitor your website’s performance, you can install Google Analytics on WordPress.

If you have any questions, encounter any issues, or need a WordPress or WooCommerce developer, please contact Tonjoo, and we’ll be happy to help you out!

develop website with tonjoo


For more articles on WordPress, WooCommerce, and web development, check out Tonjoo Studio Blog by Moch. Nasikhun Amin.


 

Last Updated on September 12, 2025 by Moch. Nasikhun Amin

Share to:
Moch. Nasikhun Amin
Written by

Moch. Nasikhun Amin

Moch. Nasikhun Amin is an SEO Technical Writer at Tonjoo. His writing specializes in topics including, but not limited to, WordPress, WooCommerce, and Web Development. Every piece of content he creates undergoes testing and technical review by the software engineering team.

Advertisements

Leave a Reply

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.