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 style for the new page or post background image | |
---------------------------------------------------------- */ | |
.entry-background { | |
display: block; | |
height: 560px; | |
width: 100%; | |
z-index: -99 !important; | |
} |
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 | |
//* Enqueue scripts and styles | |
add_action( 'wp_enqueue_scripts', 'cegg_image_load_scripts_styles' ); | |
function cegg_image_load_scripts_styles() { | |
if ( has_post_thumbnail() ) { | |
wp_enqueue_script( 'cegg-backstretch', get_bloginfo( 'stylesheet_directory' ) . '/js/backstretch.js', array( 'jquery' ), '1.0.0', true ); | |
wp_enqueue_script( 'cegg-backstretch-set', get_bloginfo( 'stylesheet_directory' ) . '/js/backstretch-set.js' , array( 'jquery', 'cegg-backstretch' ), '1.0.0', 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
<?php | |
//* Do NOT include the opening php tag | |
//* Register widget areas | |
genesis_register_sidebar( array( | |
'id' => 'sales-cta-overlay', | |
'name' => __( 'Sales Page CTA', 'cegg' ), | |
'description' => __( 'Widgets placed here will appear on top of sales page background image.', 'cegg' ), | |
) ); |
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 | |
//* Add overlay widget to sales page background image | |
add_action( 'genesis_after_header', 'sales_image_overlay', 5 ); | |
function sales_image_overlay() { | |
if ( has_post_thumbnail() ) { | |
echo '<div class="sales-cta"><div class="wrap">'; |
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
/* | |
Sales Page Template | |
-------------------------------------- */ | |
.cegg-sales { | |
background: #f7f7f7; | |
} | |
.cegg-sales .head-wrap { | |
margin: 0; |
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 widget content for "welcome" section. | |
------------------------------------------------- */ | |
function minimum_home_loop_helper_top() { | |
genesis_widget_area( 'welcome', array( |
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 | |
//* Add Home Widget areas | |
add_action( 'genesis_after_header', 'minimum_home_loop_helper_top', 15 ); | |
add_action( 'genesis_after_header', 'minimum_home_featured', 15 ); | |
add_action( 'genesis_after_header', 'minimum_home_loop_helper_bottom', 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
<?php | |
//* Do NOT include the opening php tag | |
genesis_register_sidebar( array( | |
'id' => 'welcome', | |
'name' => __( 'Welcome', 'minimum' ), | |
'description' => __( 'This is the Welcome section of the homepage.', 'minimum' ), | |
) ); | |
genesis_register_sidebar( array( | |
'id' => 'home-bottom-message', |
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
/* Welcome | |
--------------------------------------------- */ | |
.welcome { | |
background: #fff; | |
clear: both; | |
} | |
.welcome .wrap { | |
color: #333; |
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 Page Title Widget Area Below Header. | |
* | |
* author ChrisEgg | |
* http://chriseggleston.com | |
* license GPL-2.0+ | |
*/ | |
//* Add the Page Title section | |
add_action( 'genesis_after_header', 'cegg_pagetitle' ); |
OlderNewer