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 custom image sizes | |
add_image_size( 'welcome', 500, 300, true ); | |
add_image_size( 'home-featured', 300, 150, true ); |
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 support for custom header | |
add_theme_support( ‘custom-header’, array( | |
‘width’ => 400,/*Set this to whatever your theme calls for*/ | |
‘height’ => 120,/*Set this to whatever your theme calls for*/ | |
‘header-selector’ => ‘.site-title a’, | |
‘header-text’ => false, | |
) ); | |
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
.header-image .site-title > a { | |
background: url(assets/images/logo.png) no-repeat left; | |
float: left; | |
min-height: 125px; | |
max-width: 415px; | |
width: 100%; | |
-webkit-transition: all 200ms ease; | |
transition: all 200ms ease; | |
} |
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
.new-special { | |
width: 100%; | |
float: left; | |
background-color: #e5e5e5; | |
margin: 0 auto; | |
} | |
.new-special .widget { | |
width: 45%; | |
float: left; |
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
<?php | |
/** | |
* This file adds a Home Page Template to the theme. | |
* | |
function tlc_new_special() { | |
genesis_widget_area( 'new-special', array( | |
'before' => '<div class="new-special 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
//* Add the home widgets in place | |
function tlc_home_page_widgets() { | |
if ( is_front_page('') ) | |
genesis_widget_area ('new-special', array( | |
'before' => '<div class="new-special widget-area">', | |
'after' => '</div></div>',)); | |
} | |
add_action( 'genesis_before_content', 'tlc_home_page_widgets' ); |
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
//* Hook new special widget area after header (or wherever you want - use Genesis Hook Guide to change 'genesis_after_header' to whatever applies) | |
add_action( 'genesis_after_header', 'tlc_new_special_widget' ); | |
function tlc_new_special_widget() { | |
genesis_widget_area( 'new-special', array( | |
'before' => '<div class="new-special widget-area"><div class="wrap">', | |
'after' => '</div></div>', | |
) ); | |
} | |