Title: widget disappeared after adding code to functions
Last modified: August 20, 2016

---

# widget disappeared after adding code to functions

 *  Resolved [Sassinack](https://wordpress.org/support/users/sassinack/)
 * (@sassinack)
 * [14 years, 2 months ago](https://wordpress.org/support/topic/widget-disappeared-after-adding-code-to-functions/)
 * I been using .net for a year so my php is a little rusty. I think that this is
   a syntax prob and I would love extra eyes to help me find it!
 * After adding
 *     ```
       // adding the widget area to your child theme
       function featured_home_widgets() {
       	if (is_front_page() ) {
       	echo get_royalslider(1);
       if ( function_exists('dynamic_sidebar') && is_sidebar_active('featured-home') ) {
           echo '<div id="featured-home" class="aside clearfix">'. "\n" . '<ul class="xoxo">' . "\n";
           dynamic_sidebar('featured-home');
           echo '' . "\n" . '</div><!-- #featured-home -->'. "\n";
   
       }
       }
       }
       add_action('thematic_belowheader', 'featured_home_widgets', 8);
       ```
   
 * to my functions file my top-menu stopped working.
 * _[[code moderated - please use the pastebin for any code over 10 lines]](http://codex.wordpress.org/Forum_Welcome#Posting_Code)_
 * You can see the test site[ here](http://amberde.com/test)
 * Thanks!

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

 *  Thread Starter [Sassinack](https://wordpress.org/support/users/sassinack/)
 * (@sassinack)
 * [14 years, 2 months ago](https://wordpress.org/support/topic/widget-disappeared-after-adding-code-to-functions/#post-2633788)
 * Here is the whole file. Just in case I messed up somewhere else.
 * I really appreciate any help!
 * _[[code moderated - please use the pastebin]](http://codex.wordpress.org/Forum_Welcome#Posting_Code)_
 *  Thread Starter [Sassinack](https://wordpress.org/support/users/sassinack/)
 * (@sassinack)
 * [14 years, 2 months ago](https://wordpress.org/support/topic/widget-disappeared-after-adding-code-to-functions/#post-2633790)
 * fixed it! disregard

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

The topic ‘widget disappeared after adding code to functions’ is closed to new replies.

## Tags

 * [menu](https://wordpress.org/support/topic-tag/menu/)
 * [navigation](https://wordpress.org/support/topic-tag/navigation/)
 * [php](https://wordpress.org/support/topic-tag/php/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 2 replies
 * 1 participant
 * Last reply from: [Sassinack](https://wordpress.org/support/users/sassinack/)
 * Last activity: [14 years, 2 months ago](https://wordpress.org/support/topic/widget-disappeared-after-adding-code-to-functions/#post-2633790)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
