• 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)
  • can I call dynamic_sidebar in header.php?

    Yes.

    Yes, this is possible. In fact, one could make an entire theme widgetized. Hmmm…

    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.