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 ); |
View display_all_featured.php
<?php | |
/* Code to Display Featured Image on top of the post */ | |
add_action( 'genesis_before_entry', 'featured_post_image', 8 ); | |
function featured_post_image() { | |
if ( ! is_singular( 'post' ) ) return; | |
the_post_thumbnail('post-image'); | |
} |
View display_select_featured.php
<?php | |
add_action( 'genesis_entry_header', 'featured_post_image', 8 ); | |
/** | |
* Conditionally add the post thumbnail to single post | |
*/ | |
function featured_post_image() { | |
if ( ! is_singular( 'post' ) ) | |
return; | |
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, |