Smart Passive Income Pro screenshot

Remove the featured image from the homepage of Smart Passive Income Pro

Studiopress just released a new child theme for the Genesis Framework, called Smart Passive Income Pro.

Smart Passive Income Pro screenshot

It is a collaboration with Pat Flynn and based on his old website design.

Why write a tutorial on how to remove the featured image on the homepage of Smart Passive Income Pro when Studiopress provides a snippet to remove featured images?

Because the child theme already uses that snippet and then adds the featured image back in with a different priority:

//* Remove default Genesis featured image
remove_action( 'genesis_entry_content', 'genesis_do_post_image', 8 );
add_action( 'genesis_entry_content', 'genesis_do_post_image', 1 );

Smart Passive Income Pro has a select box in the Customizer to show or not show the featured image:

Screenshot of the Post and Page Image section of the Customizer in Smart Passive Income Pro

But this does not affect the homepage (showing latest posts).

Screenshot Customizer preview Smart Passive Income Pro

If you want to remove the featured image on the homepage of Smart Passive Income Pro, you can adjust the existing code:

//* Remove default Genesis featured image
remove_action( 'genesis_entry_content', 'genesis_do_post_image', 8 );
add_action( 'genesis_before_entry', 'ch_remove_featured_image_on_home_or_front_page');
function ch_remove_featured_image_on_home_or_front_page() {
    if ( is_home() || is_front_page() ) {
        return;
    }
        add_action( 'genesis_entry_content', 'genesis_do_post_image', 1 );
}

And the result is this:

Screenshot Smart Passive Income Pro No More Featured Image on homepage

Similar Posts

5 Comments

  1. This doesn’t do anything for me. Is the code specific to your child theme? Or, would newer Genesis updates since your post affect your code?

    1. Hi Ari,
      I just tried the snippet on a test site with the latest version of Smart Passive Income Pro and it works.
      The snippet only removes the featured image, not images within the post content.

Leave a Reply

Your email address will not be published. Required fields are marked *