mirror of
https://github.com/10h30/display-featured-image-genesis.git
synced 2026-07-18 14:03:20 +09:00
add filter to move large image to after header on single posts
This commit is contained in:
@@ -272,4 +272,17 @@ class Display_Featured_Image_Genesis_Common {
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* change hooks for the large size featured image
|
||||
* @return hook gives users who really want it a way to move the large image back below the title
|
||||
* @since x.y.z
|
||||
*/
|
||||
public static function change_hooks() {
|
||||
$hook = 'genesis_before_loop';
|
||||
if ( is_singular() && ! is_page_template( 'page_blog.php' ) ) {
|
||||
$hook = apply_filters( 'display_featured_image_genesis_move_large_image', $hook );
|
||||
}
|
||||
return $hook;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user