Post images should be links
-
Hi,
All my website’s beta-testers told me that the post thumbnails should be clickable and not just the link logo. So I made this change in content.php:
Original code:
<?php if ( has_post_thumbnail() && ( get_theme_mod( 'index_feat_image' ) != 1 ) ) : ?> <div class="entry-thumb"> <?php the_post_thumbnail('oblique-entry-thumb'); ?> <a class="thumb-link" href="<?php the_permalink(); ?>" title="<?php the_title(); ?>" ><i class="fa fa-link"></i></a> </div> <?php endif; ?>
Custom code:
<?php if ( has_post_thumbnail() && ( get_theme_mod( 'index_feat_image' ) != 1 ) ) : ?> <a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"> <div class="entry-thumb"> <?php the_post_thumbnail('oblique-entry-thumb'); ?> <span class="thumb-link" title="<?php the_title(); ?>" ><i class="fa fa-link"></i></span> </div> </a> <?php endif; ?>
Example here: https://www.tomlaredophotography.fr
Could you please integrate this change in the future versions?
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Post images should be links’ is closed to new replies.