Hi @ctomasso86,
You can add following code to your theme’s functions.php file or you can find settings in your theme where it is hiding the featured image.
/**
* Remove image from the single event page
*/
function wpem_custom_filter_post_thumbnail_html( $html ) {
if ( is_single() && is_singular('event_listing' ) ){
return '';
} else {
return $html;
}
}
add_filter( 'post_thumbnail_html', 'wpem_custom_filter_post_thumbnail_html' );
thanks, how do i add this to the theme’s functions.php file?
Hi @ctomasso86,
Please go to your active theme folder and open functions.php file and add the following code to your file. If you have a child theme it would be better otherwise you will lose your changes after the update.
Thank you
Hi @ctomasso86 ,
We haven’t heard from you in a while. For now, I am making this resolved. If you still have an issue please create a new thread.
Thank you
I am trying to do the same, but can’t seem to get it to work. I have added the code to functions.php in my theme, Divi.
https://catholicsistersweek.org/event/csw-social-media-campaign-csj-boston/
What else can I do to make the large image at the top not show, but still show on the bottom?
Also using Divi and having the same issue after updating the function.php file.
Would be good to get this resolved as I love how it looks at the bottom of the page.