Home Forums Teddy WordPress Theme Image link to Post

This topic contains 5 replies, has 3 voices, and was last updated by  Berlinboy 4 years, 3 months ago.

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #317

    guzman_yama
    Participant

    Hello,
    I want to link the featured image to the post and not open in a lightbox.
    Any ideas ?

    #319

    BWSM
    Keymaster

    Hi

    Please change line 14 in mod-standard.php:

    <div class="listitem_bigimg span8"><a href="<?php echo $image_thumbnail[0];?>" class="lightbox" rel="post<?php echo get_the_ID();?>"><?php echo get_the_post_thumbnail(get_the_ID(), 'post-list-thumb' );?></a></div><!--End .listitem_bigimg-->

    as:

    <div class="listitem_bigimg span8"><a href="<?php the_permalink();?>" title="<?php the_title();?>"><?php echo get_the_post_thumbnail(get_the_ID(), 'post-list-thumb' );?></a></div><!--End .listitem_bigimg-->

    #332

    guzman_yama
    Participant

    Perfect!
    Thanks!

    #623

    Berlinboy
    Participant

    Hi there,

    I was looking for a solution to the same thing.
    I realise, that this works for posts with a “featured image” set and with full width galleries.
    But is there also a way to do that with a “sliding gallery and text” post (like “Layout A” in Block in List Options)?

    Thanks in advance!

    #628

    BWSM
    Keymaster

    Hi

    Please change line 22 in mod-gallery.php:

    <div class="<?php echo $class;?>item"><a href="<?php echo $thumb_src[0];?>" class="lightbox slider-img-wrap" rel="post<?php echo get_the_ID();?>"><img src="<?php echo $thumb_src_preview[0];?>" /></a></div>

    as:

    <div class="<?php echo $class;?>item"><a href="<?php the_permalink();?>" class="slider-img-wrap"><img src="<?php echo $thumb_src_preview[0];?>" /></a></div>

    #630

    Berlinboy
    Participant

    Excellent!
    Thanks so much!

Viewing 6 posts - 1 through 6 (of 6 total)

You must be logged in to reply to this topic.