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_load_scripts_styles' ); | |
function cegg_load_scripts_styles() { | |
if ( is_singular( array( 'post', 'page' ) ) && has_post_thumbnail() ) { | |
wp_enqueue_script( 'cegg-backstretch', get_bloginfo( 'stylesheet_directory' ) . '/js/backstretch.js', array( 'jquery' ), '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 | |
/* Template Name: Sales | |
----------------------------------*/ | |
//* Enqueue scripts and styles | |
add_action( 'wp_enqueue_scripts', 'cegg_image_load_scripts_styles' ); | |
function cegg_image_load_scripts_styles() { | |
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
<?php | |
//* Do NOT include the opening php tag | |
add_filter( 'gform_enable_field_label_visibility_settings', '__return_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
/* Page Title | |
--------------------------------------------- */ | |
.pagetitle { | |
background-color: #222; | |
border-top: 5px solid #eaeaea; | |
margin: 0; | |
margin: 0; | |
padding: 40px; | |
padding: 2rem; |
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
//* Removes Page Title widget area from the homepage | |
remove_action( 'genesis_after_header', 'cegg_pagetitle' ); |
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' ); |
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
<?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 ); |