This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
add_filter( 'genesis_attr_content', 'bp_attributes_content' ); | |
/** | |
* Change attributes for home page main content element. | |
* | |
*/ | |
function bp_attributes_content( $attributes ) { | |
//* Home page main content microdata | |
if ( is_home() ) { | |
$attributes['itemtype'] = 'http://schema.org/Blog'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Home Top (These styles go above Media Queries) | |
---------------------------------------------------------------------------------------------------- */ | |
.home-top { | |
background: #fff; | |
height: 500px; | |
height: 50rem; | |
max-width: 1140px; | |
margin: 120px auto 60px; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//* Add Home Top widgetized area | |
add_action( 'genesis_after_header', 'minimum_home_top', 5 ); | |
function minimum_home_top() { | |
printf( '<div %s>', genesis_attr( 'home-top' ) ); | |
genesis_structural_wrap( 'home-top' ); | |
genesis_widget_area( 'home-top-full', array( | |
'before'=> '<div class="home-top-full widget-area">', | |
'after' => '</div>', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
genesis_register_sidebar( array( | |
'id' => 'home-top-full', | |
'name' => __( 'Home Top', 'minimum' ), | |
'description' => __( 'This is the home top section.', 'minimum' ), | |
) ); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Register and Enqueue Header Navigation Menu Script | |
* | |
* @author Brad Potter | |
* | |
* @link http://www.bradpotter.com | |
*/ | |
function gst_headermenu_script() { | |
wp_register_script( 'header-menu', get_stylesheet_directory_uri() . '/js/headermenu.js', array('jquery'), '1.0.0', false ); |