Title: WordPress Widgets
Last modified: August 18, 2016

---

# WordPress Widgets

 *  Resolved [winnopeg](https://wordpress.org/support/users/winnopeg/)
 * (@winnopeg)
 * [19 years, 12 months ago](https://wordpress.org/support/topic/wordpress-widgets/)
 * I’m back. Basically, I’m trying to widgetize my [Red is Nice theme](http://winnopeg.com/themes/redisnice),
   and I’m having problems. I’ve done everything [the article](http://automattic.com/code/widgets/themes/)
   says, and yet when the code is in place the sidebar and footer dissapear (as 
   seen [here](http://winnopeg.forumerbox.com/beta)). I’m no php genius so I need
   help.
 * P.S. I’ve tried both the php line from the tutorial page as well as the one used
   in kubrik.

Viewing 7 replies - 1 through 7 (of 7 total)

 *  Thread Starter [winnopeg](https://wordpress.org/support/users/winnopeg/)
 * (@winnopeg)
 * [19 years, 11 months ago](https://wordpress.org/support/topic/wordpress-widgets/#post-393650)
 * I still can’t get it to work.
 *  Moderator [Samuel Wood (Otto)](https://wordpress.org/support/users/otto42/)
 * (@otto42)
 * WordPress.org Admin
 * [19 years, 11 months ago](https://wordpress.org/support/topic/wordpress-widgets/#post-393651)
 * > yet when the code is in place the sidebar and footer dissapear
 * Well, the sidebar is supposed to disappear. That’s sort of the point, you’re 
   replacing the sidebar with widgets. Go to the widgets control panel and put some
   widgets on the sidebar. Admin->Presentation->Sidebar Widgets.
 * As for your missing footer, probably you forgot to close the if statement on 
   one of the sidebars.
 *  Thread Starter [winnopeg](https://wordpress.org/support/users/winnopeg/)
 * (@winnopeg)
 * [19 years, 11 months ago](https://wordpress.org/support/topic/wordpress-widgets/#post-393661)
 * I realize that it’s supposed to dissapear. I mean that it’s simply a blank space.
   😉 And as far as putting widgets in the sidebar, those have been selected too(
   archives, search, links and some others). For whatever reason it just dosn’t 
   want to work.
 * And I’m pretty sure my code’s fine – it validates perfectly, after all.
 *  Moderator [Samuel Wood (Otto)](https://wordpress.org/support/users/otto42/)
 * (@otto42)
 * WordPress.org Admin
 * [19 years, 11 months ago](https://wordpress.org/support/topic/wordpress-widgets/#post-393687)
 * winnopeg: Okay, what is the exact code that you have at the top of the functions.
   php file (the register_sidebar stuff) and what is the exact code that you have
   at the top of the sidebar files (the dynamic_sidebar stuff)?
 *  Thread Starter [winnopeg](https://wordpress.org/support/users/winnopeg/)
 * (@winnopeg)
 * [19 years, 11 months ago](https://wordpress.org/support/topic/wordpress-widgets/#post-393703)
 * functions.php :
    `<?php if ( function_exists('register_sidebar') ) register_sidebar();?
   >
 * sidebar.php (at the moment)
    `<?php if ( function_exists('dynamic_sidebar') &&
   dynamic_sidebar(1) ) : else : ?>`
 * (though I have also tried this) :
    `<?php if ( !function_exists('dynamic_sidebar')
   || !dynamic_sidebar() ) : ?>
 *  Moderator [Samuel Wood (Otto)](https://wordpress.org/support/users/otto42/)
 * (@otto42)
 * WordPress.org Admin
 * [19 years, 11 months ago](https://wordpress.org/support/topic/wordpress-widgets/#post-393712)
 * The functions.php you have should work fine with the latter bit of code for the
   dynamic sidebar (not the “at the moment” one). However, with that dynamic_sidebar()
   call, don’t forget to include the endif; line after the rest of the page (but
   before the /ul).
 *  Thread Starter [winnopeg](https://wordpress.org/support/users/winnopeg/)
 * (@winnopeg)
 * [19 years, 11 months ago](https://wordpress.org/support/topic/wordpress-widgets/#post-393732)
 * That’s what was wrong – I overlooked the other line of code. It works now, though
   the calendar don’t really work. Anyways, thank you.

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘WordPress Widgets’ is closed to new replies.

## Tags

 * [dissapear](https://wordpress.org/support/topic-tag/dissapear/)
 * [gone](https://wordpress.org/support/topic-tag/gone/)
 * [nice](https://wordpress.org/support/topic-tag/nice/)
 * [red](https://wordpress.org/support/topic-tag/red/)
 * [trouble](https://wordpress.org/support/topic-tag/trouble/)
 * [where](https://wordpress.org/support/topic-tag/where/)
 * [widgets](https://wordpress.org/support/topic-tag/widgets/)

 * 7 replies
 * 2 participants
 * Last reply from: [winnopeg](https://wordpress.org/support/users/winnopeg/)
 * Last activity: [19 years, 11 months ago](https://wordpress.org/support/topic/wordpress-widgets/#post-393732)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
