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
/* STYLING AFTER HERO WIDGET */ | |
.after-hero .wrap { | |
max-width: 100%; | |
font-size: 0; | |
padding-right: 0; | |
padding-left: 0; | |
} | |
/* STYLING BEFORE FOOTER WIDGET */ | |
.before-footer-widget { |
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 an After Hero Widget for Front Page | |
add_action( 'widgets_init', 'genesischild_front_page_widgets' ); | |
function genesischild_front_page_widgets() { | |
genesis_register_sidebar( array( | |
'id' => 'after-hero', | |
'name' => __( 'After Hero', 'genesischild' ), | |
'description' => __( 'This is the After Hero area', 'genesischild' ), | |
) ); | |
} |
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
/* Define Grid Styles in Blog Archives */ | |
.blog .entry, .archive .entry { | |
background: #fff; | |
} | |
.blog .entry-meta, .archive .entry-meta { | |
margin-bottom: 20px; | |
font-size: 14px; | |
font-size: 1.4rem; |
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 and Relocate Featured Image on Blog & Archive Pages | |
remove_action( 'genesis_entry_content', 'genesis_do_post_image', 8 ); | |
add_action( 'genesis_entry_header', 'genesis_do_post_image', 8 ); | |
// Re-position Category Info on Blog & Archive Pages | |
add_action('genesis_before_loop','archive_elements_relocation'); | |
function archive_elements_relocation() { | |
if (is_home() || is_archive() ) { | |
remove_action( 'genesis_entry_header', 'genesis_do_post_title' ); | |
remove_action( 'genesis_entry_footer', 'genesis_post_meta' ); |
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
//* Display Featured Hero Image with Entry Title and Subtitle as Overlay | |
add_action( 'genesis_after_header', 'page_hero_image' ); | |
function page_hero_image() { | |
// if we are not on a single Post, abort. | |
if ( !is_singular( 'post' && 'page' ) || is_front_page()) { | |
return; | |
} | |
// set $image to URL of featured image. If featured image is not present, set it to post-image.jpg in child theme's images directory. | |
if ( has_post_thumbnail() ) { |
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
// Move Entry Header to a Full-width Hook only on Posts/Pages | |
add_action( 'genesis_after_header', 'leaguewp_full_width_hook', 9 ); | |
function leaguewp_full_width_hook() { | |
if ( is_singular('post' ) || is_singular('page' ) ) { | |
remove_action( 'genesis_entry_header', 'genesis_entry_header_markup_open', 5 ); | |
remove_action( 'genesis_entry_header', 'genesis_do_post_title' ); | |
remove_action( 'genesis_entry_header', 'genesis_post_info', 12 ); | |
remove_action( 'genesis_entry_header', 'genesis_entry_header_markup_close', 15 ); |
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
*|RSSITEMS:|* | |
<h2 class="mc-toc-title"><a href="*|RSSITEM:URL|*" target="_blank">*|RSSITEM:TITLE|*</a></h2> | |
<em>By *|RSSITEM:AUTHOR|* on *|RSSITEM:DATE|*</em><br /> | |
*|RSSITEM:CONTENT|*<br /> | |
<br /> | |
<a href="*|RSSITEM:URL|*" target="_blank">Read in browser »</a><br /> | |
<br /> | |
*|END:RSSITEMS|*<br /> | |
<br /> | |
<h3 class="h3">Recent Articles:</h3> |
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
#Use PHP 5.4 | |
# Use PHP54 as default | |
AddHandler application/x-httpd-php54 .php | |
<IfModule mod_suphp.c> | |
suPHP_ConfigPath /opt/php54/lib | |
</IfModule> | |
RewriteEngine on | |
RewriteCond %{HTTP_HOST} ^olddomain.com [NC,OR] | |
RewriteCond %{HTTP_HOST} ^www.olddomain.com [NC] | |
RewriteRule ^(.*)$ http://newdomain.com/$1 [L,R=301,NC] |
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 Excerpt support to Pages in Genesis | |
add_post_type_support( 'page', 'excerpt' ); | |
//* Display Page Title and Page Excerpt (as Subtitle) after Header | |
add_action( 'genesis_header', 'blog_archive_remove_page_title'); | |
function blog_archive_remove_page_title () { | |
if (is_home() && get_option('page_for_posts')) { | |
add_action( 'genesis_after_header', 'blog_archive_after_header_content' ); |