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
.sliding-middle-out { | |
display: inline-block; | |
position: relative; | |
padding-bottom: 3px; | |
} | |
.sliding-middle-out:after { | |
content: ''; | |
display: block; | |
margin: auto; | |
height: 3px; |
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_action( 'genesis_header', 'utility_bar' ); | |
/** | |
* Add utility bar above header. | |
*/ | |
function utility_bar() { | |
echo '<div class="header-top">'; | |
genesis_widget_area( 'top-header-bar', array( | |
'before' => '<div class="utility-bar"><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
//Bottom CTA Band | |
function genesischild_bottomfw() { | |
genesis_register_sidebar( array( | |
'id' => 'bottomfw', | |
'name' => __( 'Bottom CTA Band', 'genesis' ), | |
'description' => __( 'This is a full width band on internal pages', 'genesis' ), | |
) ); | |
} |
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> | |
(function() { | |
var cx = '008259309430927337174:3jjrzypsqka'; | |
var gcse = document.createElement('script'); | |
gcse.type = 'text/javascript'; | |
gcse.async = true; | |
gcse.src = 'https://cse.google.com/cse.js?cx=' + cx; | |
var s = document.getElementsByTagName('script')[0]; | |
s.parentNode.insertBefore(gcse, s); | |
})(); |
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
<div class="responsive-container"> | |
<iframe src="https://www.youtube.com/embed/IHvqjtpM-Vk?rel=0&showinfo=0" frameborder="0" allowfullscreen></iframe> | |
</div> |
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
/* ----------- iPhone 5 and 5S ----------- */ | |
/* Portrait and Landscape */ | |
@media only screen | |
and (min-device-width: 320px) | |
and (max-device-width: 568px) | |
and (-webkit-min-device-pixel-ratio: 2) { | |
} |
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 new body class based on post category | |
add_filter('body_class', 'wc_category_class_single'); | |
function wc_category_class_single($classes){ | |
global $post; | |
if(is_single()) { | |
$category = get_the_category($post->ID); | |
$slug = $category[0]->slug; | |
$classes[] = 'post-category-'.$slug; |
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 a body class to single pages based on slug | |
add_filter( 'body_class', 'wc_body_class_for_pages' ); | |
function wc_body_class_for_pages( $classes ) { | |
if ( is_singular( 'page' ) ) { | |
global $post; | |
$classes[] = 'page-' . $post->post_name; | |
} | |
return $classes; |
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
// Hook after header area | |
add_action( 'genesis_after_header', 'squad_featured_image_title' ); | |
function squad_featured_image_title() { | |
// If it is a page and has a featured thumbnail, but is not the front page do the following... | |
if (has_post_thumbnail() && is_single() ) { | |
remove_action( 'genesis_entry_header', 'genesis_entry_header_markup_open', 5 ); | |
remove_action( 'genesis_entry_header', 'genesis_entry_header_markup_close', 15 ); | |
remove_action( 'genesis_entry_header', 'genesis_do_post_title' ); |
NewerOlder