Title: widgets not working
Last modified: August 19, 2016

---

# widgets not working

 *  Resolved [michaelbleakley](https://wordpress.org/support/users/michaelbleakley/)
 * (@michaelbleakley)
 * [15 years, 11 months ago](https://wordpress.org/support/topic/widgets-not-working-7/)
 * Hello i have uploaded the serious women theme and for some reason i am unable
   to add or remove widget could some one please take a look and see what the problem
   is ??? i am limitted with using HTML but here is the code in the function file
 * if ( function_exists(‘register_sidebar’) ) {
    register_sidebar(array( ‘before_widget’
   => ‘<li id=”%1$s” class=”widget %2$s”>’, ‘after_widget’ => ”, ‘before_title’ 
   => ‘<h2 class=”widgettitle”>’, ‘after_title’ => ‘</h2>’, ));
 * thank you!

Viewing 1 replies (of 1 total)

 *  [vtxyzzy](https://wordpress.org/support/users/vtxyzzy/)
 * (@vtxyzzy)
 * [15 years, 11 months ago](https://wordpress.org/support/topic/widgets-not-working-7/#post-1520031)
 * The author of that theme did not allow for users to add widgets. If you want 
   to modify the code, make a backup first. Then, in sidebar.php, at the top of 
   the file, change this:
 *     ```
       <div id="sidebar">
   
         <?php
           $children = wp_list_pages('title_li=&child_of='.$post->ID.'&echo=0');
       ```
   
 * to this:
 *     ```
       <div id="sidebar">
       <?php 	/* Widgetized sidebar, if you have the plugin installed. */
       if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar() ) : ?>
   
         <?php
           $children = wp_list_pages('title_li=&child_of='.$post->ID.'&echo=0');
       ```
   
 * And at the bottom of the file, change this:
 *     ```
       </div>
   
       </div><!-- ======= sidebar END ======= -->
       ```
   
 * to this:
 *     ```
       </div>
       <?php endif; ?>
   
       </div><!-- ======= sidebar END ======= -->
       ```
   

Viewing 1 replies (of 1 total)

The topic ‘widgets not working’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 2 participants
 * Last reply from: [vtxyzzy](https://wordpress.org/support/users/vtxyzzy/)
 * Last activity: [15 years, 11 months ago](https://wordpress.org/support/topic/widgets-not-working-7/#post-1520031)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
