Title: Featured image within the posts
Last modified: April 24, 2020

---

# Featured image within the posts

 *  Resolved [amantini1](https://wordpress.org/support/users/amantini1/)
 * (@amantini1)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/featured-image-within-the-posts/)
 * Hello to all the staff,
 * I would like to be able to view the image highlighted in the posts.
 * what file should I edit to get this result?
 * this change would be useful for both posts and pages.
 * Thank you very much and good job. 🙂
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Ffeatured-image-within-the-posts%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 5 replies - 1 through 5 (of 5 total)

 *  [Milan Thapa](https://wordpress.org/support/users/rubick322/)
 * (@rubick322)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/featured-image-within-the-posts/#post-12728583)
 * Hi [@amantini1](https://wordpress.org/support/users/amantini1/),
 * Currently there’s a CSS property applied to post images and it does change, its
   opacity when hovered over the image. Could you please elaborate what exactly 
   you are looking for when you say ‘I would like to be able to view the image highlighted
   in the posts’.
 * Do you want your blog post image to be bordered when you say highlighted? Please
   let me know your thoughts so that I can provide you with the required solution.
 * Thanks and Regards,
    Milan.
 *  Thread Starter [amantini1](https://wordpress.org/support/users/amantini1/)
 * (@amantini1)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/featured-image-within-the-posts/#post-12729290)
 * Dear [@rubick322](https://wordpress.org/support/users/rubick322/) ,
    Tks your
   reply. I need help because when I post any articles ([https://biotigullio5terre.it/il-nostro-blog-bio-tigullio-5-terre/](https://biotigullio5terre.it/il-nostro-blog-bio-tigullio-5-terre/))
   the image is not displayed when people enter the post ([https://biotigullio5terre.it/piazza-europa-la-spezia/](https://biotigullio5terre.it/piazza-europa-la-spezia/)).
   I would like that the image appears also here. Tks so much,
 * Best Regards,
 * [@amantini1](https://wordpress.org/support/users/amantini1/)
 *  [Milan Thapa](https://wordpress.org/support/users/rubick322/)
 * (@rubick322)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/featured-image-within-the-posts/#post-12735438)
 * Hi [@amantini1](https://wordpress.org/support/users/amantini1/),
 * To get the result as you desired, you must activate the child theme. You can 
   get knowledge about child theme and download the accelerate child theme from 
   below link.
 * [https://themegrill.com/blog/tutorial-creating-wordpress-child-theme/](https://themegrill.com/blog/tutorial-creating-wordpress-child-theme/)
 * Now that you’ve downloaded and activated the child theme, create a file name 
   content-single.php and add the below code.
 *     ```
       <?php
       /**
        * The template used for displaying page content in page.php
        *
        * @package    ThemeGrill
        * @subpackage Accelerate
        * @since      Accelerate 1.0
        */
       ?>
   
       <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
       	<?php do_action( 'accelerate_before_post_content' ); ?>
   
       	<?php if ( get_post_format() ) {
       		get_template_part( 'inc/post-formats' );
       	} ?>
   
       	<header class="entry-header">
       		<h1 class="entry-title">
       			<?php the_title(); ?>
       		</h1>
       	</header>
   
       	<?php accelerate_entry_meta(); ?>
   
       	<div class="entry-content clearfix">
       		<?php
   
       		if (has_post_thumbnail()) {
       			$image = '';
       			$title_attribute = get_the_title($post->ID);
       			$image .= '<figure class="post-featured-image">';
       			$image .= '<a href="' . get_permalink() . '" title="' . the_title_attribute('echo=0') . '">';
       			$image .= get_the_post_thumbnail($post->ID, 'featured-blog-large', array(
       					'title' => esc_attr($title_attribute),
       					'alt' => esc_attr($title_attribute),
       				)) . '</a>';
       			$image .= '</figure>';
       			echo $image;
       		}
   
       		the_content();
   
       		wp_link_pages( array(
       			'before'      => '<div style="clear: both;"></div><div class="pagination clearfix">' . __( 'Pages:', 'accelerate' ),
       			'after'       => '</div>',
       			'link_before' => '<span>',
       			'link_after'  => '</span>',
       		) );
       		?>
       	</div>
   
       	<?php do_action( 'accelerate_after_post_content' ); ?>
       </article>
       ```
   
 * The process is tedious and it might create a situation where you have to re-save
   your previous menu but it’ll do the trick.
    I’ll advise you to attempt this only
   if you are confident enough and have a decent knowledge about coding.
 * Thanks and Regards,
    Milan.
 *  Thread Starter [amantini1](https://wordpress.org/support/users/amantini1/)
 * (@amantini1)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/featured-image-within-the-posts/#post-12735744)
 * Dear [@rubick322](https://wordpress.org/support/users/rubick322/),
 * I did what you told me and everything is okay now.
    [https://biotigullio5terre.it/piazza-europa-la-spezia/](https://biotigullio5terre.it/piazza-europa-la-spezia/)
 * Tks so much,
 * Best Regards,
 * Massimiliano Amantini
    -  This reply was modified 6 years, 1 month ago by [amantini1](https://wordpress.org/support/users/amantini1/).
 *  [Milan Thapa](https://wordpress.org/support/users/rubick322/)
 * (@rubick322)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/featured-image-within-the-posts/#post-12736411)
 * Hi [@amantini1](https://wordpress.org/support/users/amantini1/),
 * Great to hear it worked for you, if you liked our theme and enjoying the support
   we would be thrilled if you drop a review. Your review would be an enormous help.
   And if you ever have a query please let us know.
 * Thanks and Regards,
    Milan,

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Featured image within the posts’ is closed to new replies.

 * ![](https://i0.wp.com/themes.svn.wordpress.org/accelerate/1.5.4/screenshot.jpg)
 * Accelerate
 * [Support Threads](https://wordpress.org/support/theme/accelerate/)
 * [Active Topics](https://wordpress.org/support/theme/accelerate/active/)
 * [Unresolved Topics](https://wordpress.org/support/theme/accelerate/unresolved/)
 * [Reviews](https://wordpress.org/support/theme/accelerate/reviews/)

 * 5 replies
 * 2 participants
 * Last reply from: [Milan Thapa](https://wordpress.org/support/users/rubick322/)
 * Last activity: [6 years, 1 month ago](https://wordpress.org/support/topic/featured-image-within-the-posts/#post-12736411)
 * Status: resolved