Skip to content

Instantly share code, notes, and snippets.

@WesStraham
WesStraham / gist:8010130
Last active December 31, 2015 15:58
Ally Slider Embed Code
W3sicHJvcGVydGllcyI6eyJ0aXRsZSI6IlNsaWRlciAxIiwid2lkdGgiOiIxMTQwIiwiaGVpZ2h0IjoiNDAwIiwicmVzcG9uc2l2ZSI6Im9uIiwicmVzcG9uc2l2ZXVuZGVyIjoiMCIsInN1YmxheWVyY29udGFpbmVyIjoiMCIsImF1dG9zdGFydCI6Im9uIiwicGF1c2VvbmhvdmVyIjoib24iLCJmaXJzdGxheWVyIjoiMSIsImFuaW1hdGVmaXJzdGxheWVyIjoib24iLCJ0d293YXlzbGlkZXNob3ciOiJvbiIsImxvb3BzIjoiMCIsImZvcmNlbG9vcG51bSI6Im9uIiwiYXV0b3BsYXl2aWRlb3MiOiJvbiIsImF1dG9wYXVzZXNsaWRlc2hvdyI6ImF1dG8iLCJ5b3V0dWJlcHJldmlldyI6Im1heHJlc2RlZmF1bHQuanBnIiwia2V5Ym5hdiI6Im9uIiwidG91Y2huYXYiOiJvbiIsInNraW4iOiJmdWxsd2lkdGgiLCJiYWNrZ3JvdW5kY29sb3IiOiJ0cmFuc3BhcmVudCIsImJhY2tncm91bmRpbWFnZSI6IiIsInNsaWRlcnN0eWxlIjoiIiwibmF2cHJldm5leHQiOiJvbiIsIm5hdnN0YXJ0c3RvcCI6Im9uIiwibmF2YnV0dG9ucyI6Im9uIiwiaG92ZXJwcmV2bmV4dCI6Im9uIiwiaG92ZXJib3R0b21uYXYiOiJvbiIsImNpcmNsZXRpbWVyIjoib24iLCJ0aHVtYl9uYXYiOiJkaXNhYmxlZCIsInRodW1iX3dpZHRoIjoiMTAwIiwidGh1bWJfaGVpZ2h0IjoiNjAiLCJ0aHVtYl9jb250YWluZXJfd2lkdGgiOiI2MCUiLCJ0aHVtYl9hY3RpdmVfb3BhY2l0eSI6IjM1IiwidGh1bWJfaW5hY3RpdmVfb3BhY2l0eSI6IjEwMCIsImltZ3ByZWxvYWQiOiJvbiIsInlvdXJsb2dv
@WesStraham
WesStraham / Remove prettyPhoto Image
Created October 12, 2013 02:30
Remove prettyPhoto Image
// Add Featured Image for the Portfolio posts in this Page Template
add_action('genesis_before_post_content', 'legacy_portfolio_do_post_image');
function legacy_portfolio_do_post_image() {
$img = genesis_get_image( array( 'format' => 'html', 'size' => 'portfolio-thumbnail', 'attr' => array( 'class' => 'alignnone post-image' ) ) );
printf( '<a href="%s" title="%s">%s</a>', get_permalink(), the_title_attribute('echo=0'), $img );
}
@WesStraham
WesStraham / prettyPhoto Slideshow Image
Last active December 25, 2015 08:09
prettyPhoto Slideshow Image
// Add Featured Image for the Portfolio posts in this Page Template
add_action('genesis_before_post_content', 'legacy_portfolio_do_post_image');
function legacy_portfolio_do_post_image() {
$img = genesis_get_image( array( 'format' => 'html', 'size' => 'portfolio-thumbnail', 'attr' => array( 'class' => 'alignnone post-image' ) ) );
printf( '<a href="%s" rel="prettyPhoto[gallery1]" title="%s">%s</a>', genesis_get_image( array( 'format' => 'url', 'size' => 'Portfolio Full', 'attr' => array( 'class' => 'alignnone post-image' ) ) ), the_title_attribute('echo=0'), $img );
@WesStraham
WesStraham / gist:6272587
Created August 19, 2013 18:44
How to add circles
<span class="circle alignleft">1</span>
<span class="circle alignleft">2</span>
<span class="circle alignleft">3</span>
@WesStraham
WesStraham / gist:5320889
Created April 5, 2013 17:00
Home Feature 1 and 2 Code for the Epik theme
<img class="alignleft" src="link_to_your_image.jpg" alt="image title">
<h4>9 Theme Colors to choose from!</h4>
Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip.
@WesStraham
WesStraham / gist:5320366
Created April 5, 2013 15:48
Welcome widget code for the Epik theme
<img src="link_to_your_image_goes_here.jpg" alt="image title">
<h4>Mobile Responsive Design</h4>
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit.</p>
@WesStraham
WesStraham / gist:5320229
Created April 5, 2013 15:32
How to add Quote Boxes
<div class="quote">“Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.”<strong> – Wes Straham</strong><p></p>
</div>
<div class="quote-arrow"></div>
<div class="quote-gray">“Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.”<strong> – Wes Straham</strong><p></p>
</div>
<div class="quote-arrow-gray"></div>
<div class="quote-black">“Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.”<strong> – Wes Straham</strong><p></p>
</div>
@WesStraham
WesStraham / Genesis Post Info without author
Last active December 15, 2015 05:38
This customizes the Genesis Post info by removing the author.
/** Customize the post info function */
add_filter( 'genesis_post_info', 'post_info_filter' );
function post_info_filter($post_info) {
if ( !is_page() ) {
$post_info = '[post_date] [post_comments] [post_edit]';
return $post_info;
}}
@WesStraham
WesStraham / gist:5015139
Created February 22, 2013 17:27
Customize the Read More link in Genesis
// Add "Read More" link
add_filter( 'excerpt_more', 'custom_read_more_link' );
add_filter( 'get_the_content_more_link', 'custom_read_more_link' );
add_filter( 'the_content_more_link', 'custom_read_more_link' );
function custom_read_more_link() {
return '... <a class="more-link" href="' . get_permalink() . '" rel="nofollow">Read More</a>';
}