Skip to content

Instantly share code, notes, and snippets.

View surefirewebserv's full-sized avatar

Jonathan Perez surefirewebserv

View GitHub Profile
@surefirewebserv
surefirewebserv / gist:0eb426cb2ae0337f74bb
Last active August 29, 2015 14:09 — forked from thomasgriffin/gist:9219422
Envira Gallery Thumbnail Captions
<?php
add_filter( 'envira_gallery_output_after_link', 'tgm_envira_gallery_caption', 10, 5 );
/**
* Adds a caption below each image in the gallery.
*
* @since 1.0.0
*
* @param string $output String of gallery output.
* @param mixed $id The ID of the gallery.
* @param array $item Array of data about the image.
<?php
//* Do NOT include the opening php tag
//* Remove the edit link
add_filter ( 'genesis_edit_post_link' , '__return_false' );
<?php
//* Reposition breadcrumb
remove_action( 'genesis_before_loop', 'genesis_do_breadcrumbs' );
add_action( 'genesis_after_header', 'sfws_do_breadcrumbs' );
function sfws_do_breadcrumbs(){
echo "<div class='wrap'>";
genesis_do_breadcrumbs();
echo "</div>";
}
<?php
add_action( 'get_header', 'gs_set_bp_profile_fw' );
/**
* Make BuddyPress pages full width.
*
* @uses bp_current_component() Checks if current page is showing BuddyPress component.
*/
function gs_set_bp_profile_fw() {
<?php
//* Do NOT include the opening php tag
//* Customize the credits
add_filter( 'genesis_footer_creds_text', 'sp_footer_creds_text' );
function sp_footer_creds_text() {
echo '<div class="creds"><p>';
echo 'Copyright &copy; ';
echo date('Y');
echo ' &middot; <a href="http://mydomain.com">My Custom Link</a> &middot; Built on the <a href="http://www.studiopress.com/themes/genesis" title="Genesis Framework">Genesis Framework</a>';
<?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
*/