mirror of
https://github.com/10h30/display-featured-image-genesis.git
synced 2026-07-11 18:46:03 +09:00
Update readme, version
This commit is contained in:
@@ -188,14 +188,13 @@ If you need to control the size of the backstretch Featured Image output with mo
|
||||
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;
|
||||
add_filter( 'display_featured_image_genesis_move_large_image', 'prefix_move_image' );
|
||||
function prefix_move_image( $hook ) {
|
||||
return 'genesis_entry_header';
|
||||
}
|
||||
```
|
||||
|
||||
_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.
|
||||
_Note:_ because the entry header applies to all posts on a page, on archive pages, this filter will be overridden with the default `genesis_before_loop`. To move the large image on an archive page, do not use a hook related to a single post.
|
||||
|
||||
Similar hooks:
|
||||
|
||||
@@ -225,6 +224,10 @@ to a convenient location, such as your functions.php file. Otherwise, the page t
|
||||
|
||||
## Changelog
|
||||
|
||||
### 2.5.1
|
||||
* enhancement: large image can now be moved on archive pages
|
||||
* bugfix: array filter has been reset to less strict mode
|
||||
|
||||
### 2.5.0
|
||||
* added: filter to modify plugin defaults
|
||||
* added: setting to disable plugin output on individual posts
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
* Plugin Name: Display Featured Image for Genesis
|
||||
* Plugin URI: http://github.com/robincornett/display-featured-image-genesis/
|
||||
* Description: This plugin works within the Genesis Framework, to display featured images in beautiful and dynamic ways.
|
||||
* Version: 2.5.0
|
||||
* Version: 2.5.1
|
||||
* Author: Robin Cornett
|
||||
* Author URI: http://robincornett.com
|
||||
* Text Domain: display-featured-image-genesis
|
||||
|
||||
@@ -18,7 +18,7 @@ class Display_Featured_Image_Genesis_Common {
|
||||
* @var string
|
||||
* @since 1.4.3
|
||||
*/
|
||||
public $version = '2.5.0';
|
||||
public $version = '2.5.1';
|
||||
|
||||
/**
|
||||
* set and retrieve variables for the featured image.
|
||||
|
||||
+9
-6
@@ -5,7 +5,7 @@ Donate link: https://robincornett.com/donate/
|
||||
Tags: backstretch, featured image, featured images, genesis, studiopress, post thumbnails, featured image rss, rss
|
||||
Requires at least: 4.1
|
||||
Tested up to: 4.5
|
||||
Stable tag: 2.5.0
|
||||
Stable tag: 2.5.1
|
||||
License: GPL-2.0+
|
||||
License URI: http://www.gnu.org/licenses/gpl-2.0.txt
|
||||
|
||||
@@ -147,13 +147,12 @@ If you need to control the size of the backstretch Featured Image output with mo
|
||||
|
||||
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;
|
||||
add_filter( 'display_featured_image_genesis_move_large_image', 'prefix_move_image' );
|
||||
function prefix_move_image( $hook ) {
|
||||
return 'genesis_entry_header';
|
||||
}
|
||||
|
||||
_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.
|
||||
_Note:_ because the entry header applies to all posts on a page, on archive pages, this filter will be overridden with the default `genesis_before_loop`. To move the large image on an archive page, do not use a hook related to a single post.
|
||||
|
||||
Similar hooks:
|
||||
|
||||
@@ -179,6 +178,10 @@ Settings page has been completely renovated, new bells and whistles for more cus
|
||||
|
||||
== Changelog ==
|
||||
|
||||
= 2.5.1 =
|
||||
* enhancement: large image can now be moved on archive pages
|
||||
* bugfix: array filter has been reset to less strict mode
|
||||
|
||||
= 2.5.0 =
|
||||
* added: filter to modify plugin defaults
|
||||
* added: setting to disable plugin output on individual posts
|
||||
|
||||
Reference in New Issue
Block a user