remove-sidbar-links-completely-1-wordpressWhen working with a WordPress theme, occasionally, the webmaster may want to completely remove the sidebar links and widgets from the theme. This can be done through the Widgets or by editing the source code of the sidebar.php file in the WordPress Appearance editor.

There are several ways the sidebar widgets can be disabled. This article will explain how to completely remove the sidebar links and widgets from the birdsite theme through the Widget editor and through the Appearance editor.

Removing sidebar widgets completely through the widgets editor

  1. Log into the Wordpress Dashboard
  2. Navigate to Appearance > Widgets. Click here for information on removing and adding widgets.
  3. Add a blank text widget.

    Now the links and widgets will not display.


If for whatever reason, the widget text box is not available or does not work, the code can be commented out to remove the sidebar links and widgets. Commenting the code is good because the original source code is not changed. If the source code is changed and the site breaks, it can be difficult to remember what change broke it, Especially if the code is deleted.

Removing sidebar widgets completely through the code

  1. Log into the Wordpress Dashboard
  2. remove-sidbar-links-completely-2-wordpressNavigate to Appearance > Editor on the left in the Wordpress Dashboard.
  3. remove-sidbar-links-completely-3.-wordpressOn the Edit Themes page, select the sidbar.php page on the right hand side in the Templates section.
  4. remove-sidbar-links-completely-4-wordpressThe code for the sidebar.php will load in the Theme editor window.

    Important! Editing the source code of a WordPress theme is a critical change. If the code is not edited correctly, the site WILL break. If you are not comfortable editing the code, please check with a developer before proceeding.

    Add a comment to the code like in the snapshot to the right. HTML comments look like the following:

    <!-- Begin Comment
    Code goes in between here
    End Comment -->

    Add the comment code to the page in the Theme editor and Click Update File

    remove-sidbar-links-completely-5-wordpressNow when visiting the WordPress site, the sidebar will not display any widgets or links at all.

To learn more about Widgets, please visit Introduction to Plugins & Widgets

Did you find this article helpful?

We value your feedback!

Why was this article not helpful? (Check all that apply)
The article is too difficult or too technical to follow.
There is a step or detail missing from the instructions.
The information is incorrect or out-of-date.
It does not resolve the question/problem I have.
How did you find this article?
Please tell us how we can improve our Support Center:
Email Address
Optional, but our team may contact you for more information.
Like this Article?

Post a Comment

Name:
Email Address:
Comment:
Are you a bot?
Submit

Please note: Your name and comment will be displayed, but we will not show your email address.

Write New!
Do you want to publish a tutorial to our support center?

News / Announcements

SSL Certficate Warnings
Updated 2014-04-14 11:34 am EST
Hits: 2229
Heartbleed 0-day OpenSSL security bug
Updated 2014-04-14 04:43 pm EST
Hits: 5653

Related Questions

Here are a few questions related to this article that our customers have asked:
Ooops! It looks like there are no questions about this page.
Would you like to ask a question about this page? If so, click the button below!
Ask a Question

Need more Help?

Search

Ask the Community!

Get help with your questions from our community of like-minded hosting users and InMotion Hosting Staff.

Current Customers

Chat: Click to Chat Now E-mail: support@InMotionHosting.com
Call: 888-321-HOST (4678) Ticket: Submit a Support Ticket

Not a Customer?

Get web hosting from a company that is here to help. Sign up today!