Title: Sidebar does not display widgets
Last modified: August 19, 2016

---

# Sidebar does not display widgets

 *  [chassm](https://wordpress.org/support/users/chassm/)
 * (@chassm)
 * [18 years, 1 month ago](https://wordpress.org/support/topic/sidebar-does-not-display-widgets/)
 * I just bought a premium theme that I’ve been customizing and unfortunately am
   not getting the support the seller advertised when I bought the theme so if anyone
   can help with this I’d appreciate it.
 * This theme has two sidebars which currently display, however the first sidebar
   only displays a tag cloud, the second sidebar displays anything I add to it from
   the available widgets list in wordpress. When I look at the code in the lsidebar.
   php (the sidebar in question) all it originally had was this:
 * >  <div class=”lsidebar”>
   >  - <h2>Tag Cloud</h2>
   >     <?php wp_tag_cloud(‘smallest=8&largest=14&number=30&
   >    orderby=name’); ?>
   >  - </div>
 * The sidebar shows up in the sidebar list in the widget options in wordpress but
   when I dragged and dropped widgets in it, nothing would show up,. After doing
   some research I saw that I needed to add some code to enable the sidebar to display
   widgets, so I added the necessary code to the lsidebar.php file and now it looks
   like this:
 * >  <div class=”lsidebar”>
    -  <?php if ( function_exists(’dynamic_sidebar’) && dynamic_sidebar(2) ) : else:?
      >
    - <h2>Tag Cloud</h2>
       <?php wp_tag_cloud(‘smallest=8&largest=14&number=30&orderby
      =name’); ?>
    - <?php endif; ?>
 * </div>
 * Even after doing this, dragging and dropping widgets to this sidebar does not
   show anything in the display page, the only thing that appears is the tag cloud.
   I’ve tried moving the code around but I often end up with fatal errors.
 * By the way, the contents of the functions.php file are:
 * >  <?php
   >  if ( function_exists(‘register_sidebars’) ) register_sidebars(2); ?
   > >
 * So if anyone has run into this before please let me know, and I’d appreciate 
   any direction.
 * Thanks.

Viewing 1 replies (of 1 total)

 *  Thread Starter [chassm](https://wordpress.org/support/users/chassm/)
 * (@chassm)
 * [18 years, 1 month ago](https://wordpress.org/support/topic/sidebar-does-not-display-widgets/#post-762759)
 * Anybody!?

Viewing 1 replies (of 1 total)

The topic ‘Sidebar does not display widgets’ is closed to new replies.

## Tags

 * [sidebar](https://wordpress.org/support/topic-tag/sidebar/)
 * [sidebar problems](https://wordpress.org/support/topic-tag/sidebar-problems/)
 * [sidebar widgets](https://wordpress.org/support/topic-tag/sidebar-widgets/)
 * [widgets](https://wordpress.org/support/topic-tag/widgets/)
 * [widgets not showing](https://wordpress.org/support/topic-tag/widgets-not-showing/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 1 participant
 * Last reply from: [chassm](https://wordpress.org/support/users/chassm/)
 * Last activity: [18 years, 1 month ago](https://wordpress.org/support/topic/sidebar-does-not-display-widgets/#post-762759)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
