Hey @santoshdevi 🙂
You can change that in UI settings I believe. Here is a quicker solution: https://wordpress.org/plugins/hide-featured-image-on-all-single-pagepost/
Hope that works!
Hi
The speed of the website is slowing down due to the plugin, so please tell some code (additional CSS) so that it can be solved.
@santoshdevi Okay! Try this:
.entry-content img {
display: none;
}
Let me know 🙂
Hi
Used this code but it does not remove the featured image, but all the images in the page and post are removed.
@santoshdevi Use this in your theme’s functions.php file:
add_action( 'after_setup_theme', function() {
remove_action( 'generate_before_content', 'generate_featured_page_header_inside_single', 10 );
} );
This will disable the theme from generating the featured images on single posts/pages.
Let me know 🙂
@santoshdevi If not, use the following CSS code:
.page-header-image, .page-header-image-single {
display: none;
}
The issue got resolved. Thank you
@santoshdevi Glad it was sorted 🙂