This file contains hidden or 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 | |
/** | |
* Plugin Name: Cache Post Thumbnails | |
* Description: Prime the post thumbnails cache for individual loops. | |
* Version: 1.0.0 | |
* Author: Brady Vercher | |
* Author URI: http://www.blazersix.com/ | |
* License: GPL-2.0+ | |
* License URI: http://www.gnu.org/licenses/gpl-2.0.html | |
*/ |
This file contains hidden or 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 | |
add_action('genesis_before', 'gs_do_logo'); | |
function gs_do_logo() { | |
if ( genesis_get_option('blog_title') == 'image' && get_theme_mod( 'gs_logo' ) ) | |
remove_action( 'genesis_site_title', 'genesis_seo_site_title' ); | |
add_action( 'genesis_site_title', 'gs_replace_logo' ); | |
} | |
This file contains hidden or 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
/*-------------------------------------------------------------------------------------------*/ | |
/* 9. WOODOJO */ | |
/*-------------------------------------------------------------------------------------------*/ | |
/* WooDojo Tabs */ | |
.widget_woodojo_tabs h3 { | |
border-bottom: none; | |
} | |
.widget_woodojo_tabs .tabbable .nav { | |
margin: 0 0 -1px; | |
border: none!important; |
This file contains hidden or 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
@mixin triangle($color, $size, $direction){ | |
content: ''; | |
display: block; | |
height: 0; | |
width: 0; | |
border: $size solid transparent; | |
@if($direction== 'up'){ | |
border-top: none; | |
border-bottom-color: $color; |
This file contains hidden or 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 | |
add_action('genesis_before_post_title', 'sfws_homepage_teaser_image'); | |
/** | |
* Adds Images to Posts in Grid | |
* | |
* Takes the amount of posts and applies the right size image, whether it's a featured post or a grid block post. | |
* | |
* @category Grid Loop | |
* @author Jonathan Perez, SureFireWebServices <[email protected]> |
This file contains hidden or 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 | |
/** Edit read more link */ | |
add_filter( 'excerpt_more', 'sf_read_more_link' ); | |
add_filter( 'get_the_content_more_link', 'sf_read_more_link' ); | |
add_filter( 'the_content_more_link', 'sf_read_more_link' ); | |
function sf_read_more_link() { | |
return '<a class="more-link" href="' . get_permalink() . '" rel="nofollow">Read More</a>'; | |
} |
This file contains hidden or 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 | |
global $post; | |
$lookup = array( | |
// category ID => ad ID | |
'1084' => '600', | |
'1085' => '601', | |
'1095' => '602', | |
'1086' => '603', |
This file contains hidden or 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
/* Table of Contents | |
01 Import Fonts | |
02 Base Styles | |
Defaults | |
Wraps | |
Containers and Columns | |
Entry Content Structure | |
Headings and Titles | |
-- Layout -- |
This file contains hidden or 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 | |
/** Remove ?ver=xxx from styles and scripts */ | |
function remove_cssjs_ver( $src ) { | |
if( strpos( $src, '?ver=' ) ) | |
$src = remove_query_arg( 'ver', $src ); | |
return $src; | |
} | |
add_filter( 'style_loader_src', 'remove_cssjs_ver', 10, 2 ); |