Site logo

Archived topic

GeneratePress Theme – Broadcast - Home Page Customization

5 replies · Started by HT on May 23, 2021

Viewing posts 1–6 of 6

I'm trying to check whether there is an option to remove feature images from the home page

Is there any option?

I checked the following:

Customizer > Layout > Blog
Customizer > HomePage Settings

Hi Anoop,

To clarify: You're trying to disable the post image thumbnails on the post lists within the home page?

If so:

You can disable the featured image by unchecking the "Display featured images" on the Archive tab under Customizer > Layout > Blog.

See this - https://share.getcloudapp.com/geugjGrb

Hey - That works for me. The only problem with that is it removes the feature images from Archive posts as well.

Is there any other option to remove the thumbnails ONLY from the homepage?

Also, is this the same setting for mobile devices as well?

Ah in that case, we'll have to use PHP snippets to filter things:

Try this PHP snippet:

add_filter( 'option_generate_blog_settings', 'lh_custom_search_results_page_settings' );
function lh_custom_search_results_page_settings( $options ) {
    if ( is_home() ) {
		$options['post_image'] = false;
    }
  
    return $options;
}

Here's how to add PHP - https://docs.generatepress.com/article/adding-php/

Thank you!

No problem. :)

This archived topic is closed to new replies.