Get a Free Quote

You will receive quote within 24 Hrs

We respect your privacy
Wordpress Web Development

The Case of the Mysterious Sidebar Widgets in WordPress

By: Rushik Shah

  • WordPress is a very versatile software developed as an open source solution. It is available as a free download and thus any one can install and use it to make their respective website. There are many different kinds of websites possible with WordPress.
  • From the simple Blog, to a fully featured content management system to a state of the art ecommerce website, there are no limits as to what you can create with WordPress. You may be surprised to learn that many magazines and tabloids use WordPress to make their websites. And that’s not all, some of the popular social networking websites have also been made using WordPress.
  • Thus many users have faced this issue that even when there are no widgets assigned to the sidebars in the admin area, several of them are still displayed. This is highly mysterious and baffling to some users who end up getting confused as to how to remove them. This article is to help you out when you come across such a situation in WordPress.

WordPress Sidebar Widgets

You need to follow the steps mentioned here in order to set things right.

  • First connect to your WordPress website web server using FTP .
  • Now navigate to your themes directory and download the file sidebar.php.
  • This file will contain the code as displayed below:
  • <?php if ( ! dynamic_sidebar( ‘Sidebar’ )) : ?>
  • <div id=”sidebar-search” class=”widget”>
  • <h3>Search</h3>
  • <?php get_search_form(); ?> <!– outputs the default WordPress search form→
  • </div>
  • <div id=”sidebar-nav” class=”widget menu”>
  • <h3>Navigation</h3>
  • <?php wp_nav_menu( array(‘menu’ => ‘Sidebar Menu’ )); ?> <!– editable within the WordPress backend →
  • </div>
  • <div id=”sidebar-archives” class=”widget”>
  • <h3>Archives</h3>
  • <ul>
  • <?php wp_get_archives( ‘type=monthly’ ); ?>
  • </ul>
  • </div>
  • <div id=”sidebar-meta” class=”widget”>
  • <h3>Meta</h3>
  • <ul>
  • <?php wp_register(); ?>
  • <li><?php wp_loginout(); ?></li>
  • <?php wp_meta(); ?>
  • </ul>
  • </div>
  • <?php endif; ?>
  • The above file contains a lot of code. To start with there is a condition to display the default widgets Search, Navigation, Archive, Meta if no widgets are assigned to the widget area in the admin panel.
  • You will then notice the code for each widget like for the search widget, the navigation widget , the archive widget and the meta widget.
  • What you need to do is to comment out this code or remove it all together.
  • Doing this will solve the case of the mysterious appearance of the widgets.
  • This is a common problem and does confuse many people. Although many of the WordPress sites are developed by WordPress Web Developers who are aware of these issues. It is quite common for website owners to have a customised layout and not go with readymade templates.
  • The reason behind this is quite simple. A customised layout with unique functionality has the ability of standing out from the rest. Besides which WordPress templates are pretty generic and thus it may be hard to find what you are looking for.
  • Alakmalak is one such WordPress Web Development company in India.

  • How To Widgetize Wordpress Sidebar
  • The Case Of The Mysterious Sidebar Widgets In WordPress
  • wordpress web developer

OVER 600 Small, Medium and Large Enterprise business clients have chosen us from 35 COUNTRIES

  • Federico Bilches

    I want to thank all Alakmalak team for take my project and help me to improve my website! Thank you for your responsibility and seriousness at the time to do corrections and improvements on my website and for always be in touch with me. Highly recommended! Great team! Great company! I'm very thankful Alakmalak!

  • Frank M. Cali
    Frank M. Cali.USA

    A few kinds words to say about Alakmalak programming and design. Working with these guys is always such a great relief. You know you are getting your stuff done right and usually always in a timely fashion. I’m a middle man for the most part And my clients are always happy with the end result.

Share via
Copy link
Powered by Social Snap