Masonry tiles featured images as link to post

Hello,
I try to set featured images in masonry tiles post grid as a link to post as it's set on post tilte in content-post.php on line 191:
$output .= '<h2 class="entry-title" itemprop="headline"><a href="'. get_permalink() .'">'. get_the_title() .'</a></h2>';
I try to set it in lines 97-99:
$output .= '<div class="post-photo-wrapper scale-with-grid">';
$output .= get_the_post_thumbnail( get_the_ID(), 'full', array( 'class'=>'scale-with-grid', 'itemprop'=>'image' ) );
$output .= '</div>';
Without success.
Any idea how to do it?

Comments

Sign In or Register to comment.