Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //* Remove the default header
- remove_action( 'genesis_header', 'genesis_do_header' );
- //* Add custom header
- add_action( 'genesis_header', 'sk_do_header' );
- function sk_do_header() { ?>
- <div class="title-area">
- <h1 itemprop="headline" class="site-title"><a title="<? get_bloginfo('title'); ?>" href="<? get_bloginfo('url'); ?>"><? get_bloginfo('title'); ?></a></h1>
- <h2 itemprop="description" class="event-date-location"><? return get_theme_mod('event_date'); ?> at the <? get_theme_mod('event_location');?></h2>
- <p class="sponsor">Brought to you by <? return get_theme_mod('meet_sponsor'); ?></p>
- </div>
- <? if ( is_active_sidebar( 'header-right' ) ) {
- echo '<aside class="widget-area header-widget-area">';
- genesis_widget_area( 'header-right', array(
- 'before' => '<div class="header-right-widget">',
- 'after' => '</div>',
- ) );
- echo '</aside>';
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement