“Are you tired of your pesky sidebar getting in the way and taking up valuable real estate on your WordPress website? 

Fear not, my fellow WordPress warriors! ⚔️⚔️ 

In this blog, we will vanquish the sidebar and restore order to your beautifully designed website. Just follow these easy steps and say goodbye to that pesky sidebar for good!”

5 ways to remove sidebar from WordPress

  1. Using plugin
  2. Editing theme file
  3. Use a full-width template
  4. Custom CSS
  5. Theme Customization

How to remove the sidebar in WordPress

  1. Login to WordPress dashboard
  2. Click “Appearance” > “Widgets”
  3. Get on the sidebar area & extend the widget
  4. Remove the sidebar content
  5. Click “Update” to save your progress

How to permanently remove sidebar from WordPress Theme

  1. Login to WordPress dashboard
  2. Click “Appearance” > “Theme File Editor”
  3. On the right side, look for “Sidebar” or “Sidebar.php” file
  4. Click on the file to open it in the editor. 
  5. Look for the code that generates the sidebar. It will usually be wrapped in a div element with a class or ID of “sidebar.” 
  6. Delete the entire div element and its contents.
permanently remove sidebar from WordPress Theme in these 3 marked step

Remove the sidebar in WordPress theme with CSS code

  1. Login to WordPress dashboard
  2. Click “Appearance” > “Theme File Editor”
  3. On the right side, look for “Stylesheet” or “style.css” file
  4. Click on the file to open it in the editor. 
  5. Paste the following code at the bottom:
  6. Click “Update” to save your progress.

.sidebar { 

   display: none; 

} .page 

.page-content, 

.single .entry-content {

   width: 100%; 

   float: none; 

}

Remove side from the specific post or page from WordPress

  1. Login to WordPress dashboard
  2. Click “Appearance” > “Theme File Editor”
  3. On the right side, look for “Stylesheet” or “style.css” file
  4. Click on the file to open it in the editor. 
  5. Paste the following code at the bottom:

.page-id-123 .sidebar, 

.post-id-123 .sidebar { 

   display: none; 

 

.page-id-123 .page-content, 

.post-id-123 .entry-content { 

   width: 100%; 

   float: none; 

}

Replace “123” with the ID of the page or post where you want to remove the sidebar and make the page or post full width. You can find the ID of a page or post by editing it and looking at the URL in the address bar of your web browser. The ID will be a number after “post=” or “page_id=”.

Remove sidebar with a full-width template

  1. Go to any post or page of your WordPress website
  2. Click “Customize” on the top bar
  3. Go to “Blog” > “Single Post” > “Full Width”
  4. Click “Update” to save your progress

How to remove the sidebar in WordPress with Plugin

  1. Install the “Widget Disable Plugin
  2. Activate the plugin
  3. Click “Appearance” > Disable Widgets”
  4. Click “Sidebar Widget” > “Select All”
  5. Click “Save Changes” to save your progress

 

Sidebar – Yes/No?

Whether to use a sidebar or not is a trade-off between providing additional information and links to your visitors and giving more space to your main money content. It is important to carefully consider the needs and goals of your content and decide which option is the best for you.