This code adds a checkbox to enable or disable the featured image from displaying on single posts and pages.
No plugin needed.
By default, the code adds the featured image on single posts if the featured image is checked on the Genesis > Theme Settings > Content Archive settings.
You can then remove the image simply by ticking a checkbox located below the wp editor on all Edit Post screens like this:
The code also enables you to change the position the image displays so you can move it to after the entry title or any other genesis hook location.
Demo Video
Works in any Genesis child theme.
Installation
Step 1: Simply add the following line of PHP code to the end of your child themes functions file:
include_once( get_stylesheet_directory() . '/featured-image-checkbox.php' );
Step 2: Download the featured-image-checkbox.php file below and upload it to your child themes root directory.
Here’s the featured-image-checkbox.php file for logged in members:
Was This Tutorial Helpful?