• Skip to main content
  • Skip to secondary menu
  • Skip to primary sidebar
  • Skip to footer
  • PSD to Genesis
  • Personalized Genesis Child Theme
  • Custom Website
  • Rainmaker
  • Genesis Customizations

Christoph Herr

Solutions For Your Online Business

  • Home
  • Articles
  • Recommendations
  • About
  • Praise
  • Contact
  • Schedule a Call

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

Last updated on June 3, 2018 by Christoph Herr 5 Comments

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

Share this:

Share on TwitterShare on FacebookShare on PinterestShare on LinkedInShare on Email

Filed Under: Code Snippets

Reader Interactions

Comments

  1. Erica says

    February 3, 2017 at 6:27 pm

    Thank you this really helped a lot!

    Reply
    • Christoph Herr says

      February 3, 2017 at 6:34 pm

      Hi Erica,
      I´m glad the tutorial was helpful.
      Thank you for letting me know!

      Reply
  2. Geekyard says

    August 30, 2017 at 12:28 pm

    Thanks it helped me to fix the issue!!!

    Reply
  3. Ari Herzog says

    May 22, 2018 at 9:00 am

    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?

    Reply
    • Christoph Herr says

      June 3, 2018 at 9:38 pm

      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.

      Reply

Leave a Reply Cancel reply

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

Primary Sidebar

Getresponse Email Marketing WordPress Speed Test

Subscribe to my newsletter

Please enter your information here:

I hate spam. Your information is save.

Latest Posts

WordPress Black Friday & Cyber Monday Deals

Once again it´s time for WordPress Black Friday & Cyber Monday Deals. Like last year, I have … [Read More...] about WordPress Black Friday & Cyber Monday Deals

Cafe Pro - sticky menu and image logo - end result

Add a logo to the sticky menu of Cafe Pro

A member of the Studiopress forum asked how to show a logo in the after header menu (primary … [Read More...] about Add a logo to the sticky menu of Cafe Pro

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 … [Read More...] about Remove the featured image from the homepage of Smart Passive Income Pro

Footer

StudioPress Theme of the Month

Copyright © 2023 · Magazine Pro Theme On Genesis Framework · WordPress · Log in