Make featured image thumbnail unclickable.
-
How can I do this?
I use a grid theme and I have no need for the link to the posts themselves, also when the images are clickable the plugin I use to show share buttons upon image hover doesn’t work.
I’ve looked everywhere but can’t figure out how to do this. I just need the clickability off the images.
Could anyone point me in the right direction?
Here’s my content.php
I think it might be something in here but I have no idea what
` <article id=”post-<?php the_ID(); ?>” <?php post_class(); ?>>
<?php if( in_array(get_post_format(), array(‘video’, ‘audio’, ‘gallery’, ‘link’)) || has_post_thumbnail() ) : ?>
<div class=”featured”>
<?php
if( has_post_format(‘video’) || has_post_format(‘audio’)){
pukka_media();
}
/*
elseif( has_post_format(‘gallery’) ){
echo ‘‘;
the_post_thumbnail(‘thumb-single’);
echo ‘‘;
}
*/
elseif( has_post_format(‘link’) ) {
echo ‘ID, ‘_pukka_link’,true) .'” target=”_blank”>’;
the_post_thumbnail(‘thumb-single’);
echo ‘‘;
}
elseif( has_post_thumbnail() ) {
the_post_thumbnail(‘thumb-single’);
echo ”;
}
?>
<span class=”stripe”></span>
</div> <!– .featured –>
<?php endif; //<?php if( has_post_format(array(‘video’, ‘audio’, ‘gallery’)) || has_post_thumbnail() ) : ?><div class=”content-wrap”>
<h1 class=”page-title”>
<?php if( has_post_format(‘link’) ) : ?>
ID, ‘_pukka_link’,true); ?>” target=”_blank”>
<?php else : ?>
<?php endif; ?>
<?php the_title(); ?>
</h1>
<div class=”entry-meta”>
<?php pukka_entry_meta(); ?>
</div> <!– .entry-meta –>
<div class=”entry-content”>
<?php the_content(); ?>
</div><!– .entry-content –>
</div> <!– .content-wrap –>
</article>
The topic ‘Make featured image thumbnail unclickable.’ is closed to new replies.