Return to Snippet

Revision: 53950
at December 3, 2011 08:35 by mommygeekology


Initial Code
/*Define Header Widget*/
register_sidebars(1,
    array(
        'name' => 'Header Widget',
        'before_widget' => '<li class="widget %2$s" id="%1$s">',
        'after_widget' => '</li>',
        'before_title' => '<span class="widget-title">',
        'after_title' => '</span>'
    )
);
function header_widget() { ?>
	<div id="header_widget" class="sidebar">
		<ul class="sidebar">
			<?php if (!function_exists('dynamic_sidebar') || !dynamic_sidebar('Header Widget') ){	?>
						<li class="widget"><h3><?php _e('Header Widget', 'headway'); ?></h3>No widgets yet!</li><?php } ?>
		</ul>
	</div>
<?php }
add_action('headway_before_header_link', 'header_widget', '1');

Initial URL

                                

Initial Description
Add a widgetized header to the Headway Theme 2.0.x

Initial Title
Headway Widgetized Header

Initial Tags

                                

Initial Language
PHP