From 624b5fc6909b91fe1f82b80caccfe8d1dfcc71ae Mon Sep 17 00:00:00 2001 From: Robin Cornett Date: Sun, 4 Jan 2015 17:47:50 -0500 Subject: [PATCH] document new filter for large image --- README.md | 12 ++++++++++++ readme.txt | 9 +++++++++ 2 files changed, 21 insertions(+) diff --git a/README.md b/README.md index 52a45c5..b7c4b04 100644 --- a/README.md +++ b/README.md @@ -158,6 +158,18 @@ function rgc_omit_excerpts( $post_types ) { _Note:_ unless you check the option to __Move Excerpts/Archive Descriptions__, archive headlines will be styled similarly to the standard single post/page output. If you check this option, all titles and descriptions will move to overlay the leader image. +### My (large) Featured Image is above my post/page title, and I want it to show below it instead. + +There is a filter for this, too. By default, the large (as opposed to backstretch) image is added before the Genesis loop, which places it above your post or page title. You can add this filter to your theme's functions.php file to move the image below your post/page title: + +```php +add_filter( 'display_featured_image_genesis_move_large_image', 'rgc_move_image' ); +function rgc_move_image( $hook ) { + $hook = 'genesis_entry_header'; + return $hook; +} +``` + ## Credits * Built by [Robin Cornett](http://robincornett.com/) diff --git a/readme.txt b/readme.txt index 570f09e..7beb79d 100644 --- a/readme.txt +++ b/readme.txt @@ -121,6 +121,15 @@ There's a filter for that, too. For example, adding this to your functions.php f _Note:_ unless you check the option to __Move Excerpts/Archive Descriptions__, archive headlines will be styled similarly to the standard single post/page output. If you check this option, all titles and descriptions will move to overlay the leader image. += My (large) Featured Image is above my post/page title, and I want it to show below it instead. = + +There is a filter for this, too. By default, the large (as opposed to backstretch) image is added before the Genesis loop, which places it above your post or page title. You can add this filter to your theme's functions.php file to move the image below your post/page title: + + add_filter( 'display_featured_image_genesis_move_large_image', 'rgc_move_image' ); + function rgc_move_image( $hook ) { + $hook = 'genesis_entry_header'; + return $hook; + } == Screenshots == 1. Screenshot of a page using the Backstretch Featured Image