Skip to content

Instantly share code, notes, and snippets.

Avatar

Blake Imeson imeson

View GitHub Profile
View single-product.php
<?php
/**
* This template displays the single Product
*/
/** Remove default Genesis loop */
remove_action( 'genesis_loop', 'genesis_do_loop' );
/** Remove WooCommerce breadcrumbs */
remove_action( 'woocommerce_before_main_content', 'woocommerce_breadcrumb', 20 );
@imeson
imeson / display_all_featured.php
Created Sep 14, 2017
Code to Display Featured Image on top of the post
View display_all_featured.php
@imeson
imeson / display_select_featured.php
Created Sep 14, 2017
Conditionally add the post thumbnail to single post
View display_select_featured.php
@imeson
imeson / plugin.php
Last active Jan 31, 2017
Excerpt of WPENGINE's mu-plugins/wpengine-common/plugin.php file
View plugin.php
/**
* This handles CDN replacement for srcset images.
*
* @since 2.2.10
* @filter wp_calculate_image_srcset
* @param array $sources The image metadata as returned by 'wp_get_attachment_metadata()'.
*/
public function wpe_cdn_srcset( $sources ) {
if ( defined( 'WPE_SRCSET_CDN_DISABLED' ) && true === WPE_SRCSET_CDN_DISABLED ) {
return $sources;
View fb.json
{
"og_object": {
"id": "1422552114441345",
"description": "I\u2019ve written numerous times about the unseen gifts that a long career in this industry can give you. Some of course are unwanted, like bad knees, bad back, financial insecurity, along with ongoing anxiety attacks stirred by deep feelings of inadequacy and uncertainty. Others are most welcome. Lifelong friends, interaction with supremely interesting subjects, adventures \u2026",
"title": "The Royal Photographic Society \u00ab Joe McNally's Blog",
"type": "article",
"updated_time": "2016-10-14T18:48:57+0000"
},
"share": {
"comment_count": 0,
You can’t perform that action at this time.