Viewing 4 replies - 1 through 4 (of 4 total)
  • Hi @spaldinghurst,
    Please add the following code to your child theme’s functions.php file:

    function wordpress_hide_feature_image( $html, $post_id, $post_image_id ) {
      return is_singular( 'event_listing' ) ? '' : $html;
    }
    // add the filter
    add_filter( 'post_thumbnail_html', 'wordpress_hide_feature_image', 10, 3);

    Thank you

    Thread Starter spaldinghurst

    (@spaldinghurst)

    Thanks for responding. I have made that change to functions.php after creating a child theme just now, but the image is still there.

    https://catholicsistersweek.org/event/csw-social-media-campaign-csj-boston/

    This is my current functions.php file:

    <?php
    function my_theme_enqueue_styles() { 
        wp_enqueue_style( 'parent-style', get_template_directory_uri() . '/style.css' );
    }
    add_action( 'wp_enqueue_scripts', 'my_theme_enqueue_styles' );
    
    function wordpress_hide_feature_image( $html, $post_id, $post_image_id ) {
      return is_singular( 'event_listing' ) ? '' : $html;
    }
    // add the filter
    add_filter( 'post_thumbnail_html', 'wordpress_hide_feature_image', 10, 3);

    Hi @spaldinghurst,

    It looks like there might be settings in your theme which allows you to disable featured image from the single post page. Can you please look into it?

    Thank you

    Thread Starter spaldinghurst

    (@spaldinghurst)

    That was it, had to disable “place thumbs on post” under the theme options.

    Thanks for your help!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Organizer logo too big/remove Divi theme’ is closed to new replies.