Can i use dynamic_sidebar('first-footer-widget-area'); directly in footer.php?Any change to made in functions.php page? I am using twenty ten theme.

2 Answers 2


Here is complete code that runs this sidebar from sidebar-footer.php template:

<?php if ( is_active_sidebar( 'first-footer-widget-area' ) ) : ?>
                <div id="first" class="widget-area">
                    <ul class="xoxo">
                        <?php dynamic_sidebar( 'first-footer-widget-area' ); ?>
                </div><!-- #first .widget-area -->
<?php endif; ?>

You can move this snippet around, but it might break styling. Also Twenty Ten is often upgraded with WordPress and by itself and you will need to create child theme for it so your changes stick.

I'd first try to move widgets with CSS or maybe register separate sidebar if something specialized is needed.

  • ok.thank you so much.<i>Please help me out for this also..</i>I had uploaded new theme(child theme) in clients server.Theme folder had twentyten and child theme now.But when i activated the theme in admin side ,the twenty ten shows the corresponding child theme and other one shows the html template of corresponding wordpress theme.Could you suggest what went wrog?
    – treesa
    Commented Jan 13, 2011 at 7:01
  • @treesa I am not sure I understand your issue. Since it's not directly related to moving sidebars around it would make sense to create separate question for it.
    – Rarst
    Commented Jan 13, 2011 at 7:07

Yes, you can place that code directly into any file and it will display the sidebar wherever you place it.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.