mirror of
https://github.com/10h30/display-featured-image-genesis.git
synced 2026-07-16 21:13:18 +09:00
Add setting to always use default image
This commit is contained in:
@@ -141,6 +141,7 @@ class Display_Featured_Image_Genesis_Settings extends Display_Featured_Image_Gen
|
||||
'skip' => array(),
|
||||
'fallback' => array(),
|
||||
'max_height' => '',
|
||||
'always_default' => 0,
|
||||
) );
|
||||
}
|
||||
|
||||
@@ -208,6 +209,13 @@ class Display_Featured_Image_Genesis_Settings extends Display_Featured_Image_Gen
|
||||
'callback' => 'set_default_image',
|
||||
'section' => 'main',
|
||||
),
|
||||
array(
|
||||
'id' => 'always_default',
|
||||
'title' => __( 'Always Use Default', 'display-featured-image-genesis' ),
|
||||
'callback' => 'do_checkbox',
|
||||
'section' => 'main',
|
||||
'args' => array( 'setting' => 'always_default', 'label' => __( 'Always use the default image, even if a featured image is set.', 'display-featured-image-genesis' ) ),
|
||||
),
|
||||
array(
|
||||
'id' => 'exclude_front',
|
||||
'title' => __( 'Skip Front Page', 'display-featured-image-genesis' ),
|
||||
|
||||
Reference in New Issue
Block a user