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 | |
//* Do NOT include the opening php tag | |
//* Display featured image before single entry title. | |
add_action( 'genesis_before_entry', 'featured_post_image', 8 ); | |
function featured_post_image() { | |
if ( ! is_singular( 'post' ) ) return; | |
the_post_thumbnail('large'); | |
} |
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 | |
//* Do NOT include the opening php tag | |
//* Move featured image above entry title in archives. | |
remove_action( 'genesis_entry_content', 'genesis_do_post_image', 8 ); | |
add_action( 'genesis_entry_header', 'genesis_do_post_image', 8 ); |
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
//* Customize read more text | |
add_filter( 'excerpt_more', 'genesis_read_more_link' ); | |
add_filter( 'get_the_content_more_link', 'genesis_read_more_link' ); | |
add_filter( 'the_content_more_link', 'genesis_read_more_link' ); | |
function genesis_read_more_link() { | |
return '<a class="more-link" href="' . get_permalink() . '">Continue Reading</a>'; | |
} |
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
button, | |
input[type="button"], | |
input[type="reset"], | |
input[type="submit"], | |
.button, | |
.more-link { /* Add this line to existing button class */ | |
background: none; | |
border: 1px solid #de6c67; | |
color: #de6c67; | |
cursor: pointer; |
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 Page Header | |
genesis_register_sidebar( array( | |
'id' => 'page-header', | |
'name' => __( 'Page Header', 'genesis' ), | |
'description' => __( 'This is the Page Header area.', 'Genesis' ), | |
) ); | |
//* Add the Page Header | |
add_action( 'genesis_after_header', 'genesis_page_header' ); | |
function genesis_page_header() { |
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 Page Header | |
genesis_register_sidebar( array( | |
'id' => 'page-header', | |
'name' => __( 'Page Header', 'genesis' ), | |
'description' => __( 'This is the Page Header area.', 'Genesis' ), | |
) ); | |
//* Add the Page Header | |
add_action( 'genesis_after_header', 'genesis_page_header' ); | |
function genesis_page_header() { |
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
/* # Page Header | |
---------------------------------------------------------------------------------------------------- */ | |
.page-header { | |
text-align: center; | |
} | |
.page-header .widget { | |
padding: 7% 14%; | |
} |
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
//* Remove sidebars and header widget area | |
unregister_sidebar( 'header-right' ); | |
unregister_sidebar( 'sidebar' ); | |
unregister_sidebar( 'sidebar-alt' ); | |
//* Unregister layout settings | |
genesis_unregister_layout( 'content-sidebar' ); | |
genesis_unregister_layout( 'sidebar-content' ); | |
genesis_unregister_layout( 'content-sidebar-sidebar' ); | |
genesis_unregister_layout( 'sidebar-content-sidebar' ); |
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
# EXPIRES CACHING # | |
<IfModule mod_expires.c> | |
ExpiresActive On | |
ExpiresByType image/jpg "access 1 week" | |
ExpiresByType image/jpeg "access 1 week" | |
ExpiresByType image/gif "access 1 week" | |
ExpiresByType image/png "access 1 week" | |
ExpiresByType text/css "access 1 week" | |
ExpiresByType application/pdf "access 1 month" | |
ExpiresByType application/javascript "access 1 month" |
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
/* ## Screen Reader Text | |
--------------------------------------------- */ | |
.screen-reader-text, | |
.screen-reader-text span, | |
.screen-reader-shortcut { | |
position: absolute !important; | |
clip: rect(0, 0, 0, 0); | |
height: 1px; | |
width: 1px; |
OlderNewer