WordPress.org

Forums

Customizr
[resolved] Removing images from homepage (3 posts)

  1. PCCHD
    Member
    Posted 2 years ago #

    Hi

    Does anyone know of a way to stop / remove featured images from appearing on the homepage of a site using the Customizer theme?

    We have started to work on a News Room site based on this theme and would like to add images to the specific posts (which is fine and works OK).

    On the homepage we are looking to show the latest posts but without any associated images.

    At the moment they appear in a small circle next to the homepage article which then expands when the user moves their mouse over the image.

    Does anyone know whether it's possible to remove the images from appearing on the homepage.

    Apart from this we like the theme very much.

    Thanks

  2. d4z_c0nf
    Member
    Posted 2 years ago #

    Add this to your child theme functions.php:

    add_filter('tc_show_post_list_thumb', 'no_tb_in_home');
    function no_tb_in_home($bool){
        if ( ! tc__f('__is_home') )
            return $bool;
        return false;
    }

    Hope this helps.

  3. PCCHD
    Member
    Posted 2 years ago #

    Hi d4z_c0nf

    Thanks for the code suggestion - it has worked perfectly. Really appreciate the quick response. Thank you.

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic

Tags