From 416fdb2926184ecdc6e49e1106ed428d00825f32 Mon Sep 17 00:00:00 2001 From: Robin Cornett Date: Thu, 26 Feb 2015 17:57:04 -0500 Subject: [PATCH] update readme --- README.md | 12 ++++++++++++ readme.txt | 14 ++++++++++++-- 2 files changed, 24 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 4cd8374..f4518a7 100644 --- a/README.md +++ b/README.md @@ -178,6 +178,18 @@ function rgc_move_image( $hook ) { _Note:_ because the entry header applies to all posts on a page, such as a blog or archive page, this filter modifies the output only on singular posts. +### If a post does not have a featured image of its own, can the term, post type, or default featured image show in the archives? + +Yes! A helper function exists for this, but only runs if you add it. You can easily do this by adding the following to your theme's functions.php file: + +```php +if ( class_exists( 'Display_Featured_Image_Genesis' ) ) { + add_action( 'genesis_entry_content', 'display_featured_image_genesis_add_archive_thumbnails', 5 ); +} +``` + +This will follow the settings you choose in the Genesis Theme Settings. + ## Credits * Built by [Robin Cornett](http://robincornett.com/) diff --git a/readme.txt b/readme.txt index dc73b42..9294d3a 100644 --- a/readme.txt +++ b/readme.txt @@ -109,7 +109,7 @@ If a post has no featured image of its own, and is assigned to multiple taxonomy It seems that you can also include [conditional tags](http://codex.wordpress.org/Conditional_Tags) in the above, eg `$post_types[] = is_post_type_archive();`. -### The backstretch image takes up too much room on the screen. += The backstretch image takes up too much room on the screen. = If you do not want the height of the backstretch image to be quite the height of the user's browser window, which is the standard, you can reduce it by just a hair. Go to Appearance > Display Featured Image Settings and change the 'Height' number from the default of 0. The higher this number is, the shorter the window will be calculated to be. Feel free to experiment, as no images are harmed by changing this number. @@ -129,7 +129,7 @@ If you need to control the size of the backstretch Featured Image output with mo } -### My (large) Featured Image is above my post/page title, and I want it to show below it instead. += 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: @@ -141,6 +141,16 @@ There is a filter for this, too. By default, the large (as opposed to backstretc _Note:_ because the entry header applies to all posts on a page, such as a blog or archive page, this filter modifies the output only on singular posts. += If a post does not have a featured image of its own, can the term, post type, or default featured image show in the archives? = + +Yes! A helper function exists for this, but only runs if you add it. You can easily do this by adding the following to your theme's functions.php file: + + if ( class_exists( 'Display_Featured_Image_Genesis' ) ) { + add_action( 'genesis_entry_content', 'display_featured_image_genesis_add_archive_thumbnails', 5 ); + } + +This will follow the settings you choose in the Genesis Theme Settings. + == Screenshots == 1. Screenshot of a page using the Backstretch Featured Image 2. Set a Default Featured Image on the Appearance > Display Featured Image Settings page.