Full Width Front Page
/* Front Page
-------------------------------------------- */
.home .site-inner {
max-width: none;
padding-top: 0;
}
@media only screen and (max-width: 800px) {
.home .site-inner {
padding-left: 0;
padding-right: 0;
}
}
<?php
//* Do NOT include the opening php tag shown above. Copy the code shown below.
<!-- front-page.php: -->
<?php
add_filter( 'genesis_attr_site-inner', 'sk_attributes_site_inner' );
/**
* Add attributes for site-inner element.
*
* @since 2.0.0
*
* @param array $attributes Existing attributes.
*
* @return array Amended attributes.
*/
function sk_attributes_site_inner( $attributes ) {
$attributes['role'] = 'main';
$attributes['itemprop'] = 'mainContentOfPage';
return $attributes;
}
// Remove div.site-inner's div.wrap
add_filter( 'genesis_structural_wrap-site-inner', '__return_empty_string' );
// Display Header
get_header();
// Display Content
// the_post(); // sets the 'in the loop' property to true.
// the_content();
genesis_widget_area( 'featured-stories', array(
'before' => '<div class="featured-stories widget-area"><div class="wrap">',
'after' => '</div></div>',
) );
// Display Footer
get_footer();