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
/* 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
<?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
<?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 | |
//* 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
<script type="text/javascript"> | |
jQuery(document).ready(function(){ | |
/* apply only to a input with a class of gf_readonly */ | |
jQuery(".gf_readonly input").attr("readonly","readonly"); | |
}); | |
</script> |
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 | |
//Copy everything below this point | |
add_action( 'admin_head', function () { ?> | |
<style> | |
header.gform-settings-header .gform-settings__wrapper { | |
/* this will hide the whole thing, including image */ | |
display: none; | |
} |