Title: Widget in the header?
Last modified: August 18, 2016

---

# Widget in the header?

 *  [JustMagicMaria](https://wordpress.org/support/users/justmagicmaria/)
 * (@justmagicmaria)
 * [18 years, 7 months ago](https://wordpress.org/support/topic/widget-in-the-header/)
 * I’m writing my own theme. Is it possible to make a widget-ready HEADER rather
   than sidebar? In other words, can I call dynamic_sidebar in header.php? I know,
   I could just try it and see if it works…
 * (The reason I’m asking: I’m making a plugin for managing page menus. Page menus
   can go in the header, footer, sidebars…)
 * Maria

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

 *  [Doodlebee](https://wordpress.org/support/users/doodlebee/)
 * (@doodlebee)
 * [18 years, 7 months ago](https://wordpress.org/support/topic/widget-in-the-header/#post-623282)
 * _can I call dynamic\_sidebar in header.php?_
 * Yes.
 *  [bryan868](https://wordpress.org/support/users/bryan868/)
 * (@bryan868)
 * [18 years, 7 months ago](https://wordpress.org/support/topic/widget-in-the-header/#post-623284)
 * Yes, this is possible. In fact, one could make an entire theme widgetized. Hmmm…
 *  [Daiv Mowbray](https://wordpress.org/support/users/daiv/)
 * (@daiv)
 * [18 years, 6 months ago](https://wordpress.org/support/topic/widget-in-the-header/#post-623635)
 * Hey there JustMagicMaria did you ever get this to work?
    I am looking at adding
   a widget to my header also. Just wondered how to do it, I was trying this: with
   no luck, I thought I would have a third column in the admin/presentation/widgets
   page.
 *     ```
       <h2>
           <?php if ( is_home() ) {
           	bloginfo('description'); }
           	else if ( function_exists('dynamic_sidebar') && dynamic_sidebar('Top Sidebar') ) : else :
           	{
           	the_category();
           	} endif;?>
           	</h2>
       ```
   

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

The topic ‘Widget in the header?’ is closed to new replies.

## Tags

 * [footer](https://wordpress.org/support/topic-tag/footer/)
 * [header](https://wordpress.org/support/topic-tag/header/)
 * [sidebar](https://wordpress.org/support/topic-tag/sidebar/)
 * [widgets](https://wordpress.org/support/topic-tag/widgets/)

 * 3 replies
 * 4 participants
 * Last reply from: [Daiv Mowbray](https://wordpress.org/support/users/daiv/)
 * Last activity: [18 years, 6 months ago](https://wordpress.org/support/topic/widget-in-the-header/#post-623635)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
