Remove featured post image

Asked

Viewed 1,954 times

0

How do I remove the featured image from a post (image posted in the post) without removing it from the website homepage?

Note: I have an image site with citations and this is highly problematic because it discourages publication and even repeats the same message in the image twice on the page.

After consulting responses to a similar problem, which said that the single.php of the site should be found and remove some lines, I open a new problem:

The Neutral wordpress theme that I use does not have single.php.

Some tips?

Example (my home page) LINK

page with publication and example of highlighted image example

1 answer

1

You should check the type of post selected on the post edition page.

If it is a standard post, you must edit the file "content.php" the image is on line 21.

Remove the code:

<?php if ( (function_exists('neutro_has_get_the_image') ? neutro_has_get_the_image() : '' ) ) if (comments_open() && !post_password_required()) 
				comments_popup_link('0', '1', '%','comment-counter'); ?>

				<?php $featured_image = neutro_featured_image_widths();
				if ( current_theme_supports( 'get-the-image' ) ) get_the_image( array( 'size' => $featured_image['size'], 'width' => $featured_image['width'], 'height' => $featured_image['height'], 'image_class' => 'featured-thumbnail', 'before' => '<figure>', 'after' => '</figure>' ) ); ?>	

other files like: content-aside.php content-audio.php content-status.php and etc... They can also contain the same code that pulls a highlighted image. I hope I’ve helped!

  • Thanks Gabriel, your tip worked perfectly.

  • Thank you for voting on my reply.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.