Skip to content

Instantly share code, notes, and snippets.

View waynebcox's full-sized avatar

Wayne Cox waynebcox

View GitHub Profile
@srikat
srikat / functions.php
Last active April 9, 2019 16:27
How to overlay entry title on featured image in single Posts. https://sridharkatakam.com/overlay-entry-title-featured-image-single-posts/
// Register a custom image size for hero images on single Posts
add_image_size( 'post-image', 1600, 400, true );
add_action( 'genesis_after_header', 'sk_hero_image' );
function sk_hero_image() {
// if we are not on a single Post, abort.
if ( !is_singular( 'post' ) ) {
return;
}