• Resolved Sassinack

    (@sassinack)


    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]

    You can see the test site here

    Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘widget disappeared after adding code to functions’ is closed to new replies.