WordPress Triple Header
/* Triple Header */
.site-header .title-area,
.header-image .site-header .wrap .title-area,
.site-header .header-widget-area {
box-sizing: border-box;
float: left;
margin-left: 0;
margin-right: 0;
padding-left: 0;
padding-right: 0;
text-align: center;
width: 33.333333333333%;
}
.header-image .site-header .wrap .title-area {
background-position: center top;
}
.site-header .genesis-nav-menu {
text-align: center;
width: auto;
}
@media only screen and (max-width: 1140px) {
.site-header .title-area,
.header-image .site-header .wrap .title-area,
.site-header .header-widget-area {
width: 100%;
}
}
<?php
//* Filter the header-right widget-area classes
add_filter( 'genesis_attr_header-widget-area', 'dynamik_genesis_attr_header_widget' );
function dynamik_genesis_attr_header_widget ( $attributes ) {
$attributes['class'] = 'widget-area header-widget-area header-right';
return $attributes;
}
//* Add markup for header-left widget-area
add_action( 'genesis_header', 'dynamik_header_left', 8 );
function dynamik_header_left() {
if ( is_active_sidebar( 'header-left' ) ) {
echo '<aside class="widget-area header-widget-area header-left">';
add_filter( 'wp_nav_menu_args', 'genesis_header_menu_args' );
add_filter( 'wp_nav_menu', 'genesis_header_menu_wrap' );
dynamic_sidebar( 'header-left' );
remove_filter( 'wp_nav_menu_args', 'genesis_header_menu_args' );
remove_filter( 'wp_nav_menu', 'genesis_header_menu_wrap' );
echo '</aside>';
}
}
//* Register header-left widget-area
genesis_register_sidebar( array(
'id' => 'header-left',
'name' => __( 'Header Left', 'dynamik-gen' ),
) );