This file contains hidden or 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
<?php | |
/** | |
* Genesis Framework. | |
* | |
* WARNING: This file is part of the core Genesis Framework. DO NOT edit this file under any circumstances. | |
* Please do all modifications in the form of a child theme. | |
* | |
* @package Genesis\Templates | |
* @author StudioPress | |
* @license GPL-2.0+ |
This file contains hidden or 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
<?php | |
//* Template Name: Team | |
//* Force full width content layout | |
add_filter( 'genesis_site_layout', '__genesis_return_full_width_content' ); | |
//* Add body class to the head of team template | |
add_filter( 'body_class', 'team_add_body_class' ); | |
function team_add_body_class( $classes ) { |
This file contains hidden or 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
<?php | |
// Header. | |
get_header(); | |
// Footer. | |
get_footer(); |
This file contains hidden or 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 front-page-1 widget areas | |
genesis_register_widget_area( | |
array( | |
'id' => "front-page-1", | |
'name' => __( "Front Page 1", 'my-theme-text-domain' ), | |
'description' => __( "This is the front page 1 section.", 'my-theme-text-domain' ), | |
) | |
); |
This file contains hidden or 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 front-page-2 widget area | |
genesis_register_widget_area( | |
array( | |
'id' => "front-page-2", | |
'name' => __( "Front Page 2", 'my-theme-text-domain' ), | |
'description' => __( "This is the front page 2 section.", 'my-theme-text-domain' ), | |
) | |
); |
This file contains hidden or 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
// Content. | |
genesis_widget_area( "front-page-1", array( | |
'before' => '<div class="front-page-1 front-page-section"><div class="wrap">', | |
'after' => '</div></div>', | |
) ); |
This file contains hidden or 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_widget_area( "front-page-2", array( | |
'before' => '<div class="front-page-2 front-page-section"><div class="wrap">', | |
'after' => '</div></div>', | |
) ); |
This file contains hidden or 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
// Enqueue styles | |
wp_enqueue_style( 'front-styles', get_stylesheet_directory_uri() . '/style-front.css', array(), CHILD_THEME_VERSION ); |
This file contains hidden or 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 attributes for site-inner element, since we're removing 'content'. | |
function be_site_inner_attr( $attributes ) { | |
// Add a class of 'full' for styling this .site-inner differently | |
$attributes['class'] .= ' full'; | |
// Add the attributes from .entry, since this replaces the main entry | |
$attributes = wp_parse_args( $attributes, genesis_attributes_entry( array() ) ); | |
return $attributes; | |
} | |
add_filter( 'genesis_attr_site-inner', 'be_site_inner_attr' ); |