• Resolved grobs38

    (@grobs38)


    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?

    • This topic was modified 7 years, 11 months ago by grobs38.
Viewing 1 replies (of 1 total)
  • Hi,

    That you for the suggestion. I’ve forwarded it to our team and we will consider adding it to an upcoming release of the theme. Thank you. ??

Viewing 1 replies (of 1 total)
  • The topic ‘Post images should be links’ is closed to new replies.