Before you ask please READ THIS

thumb for post - remove link in post

edited August 2013 in Hypershot Posts: 12
Air, i think i have to buy a cup of cofee for you already, but

can i remove link in post page, because visitors often click on image that is thumb for post and wait for lightbox with this image but the page loads again instead. Or is there a way to open lightbox with full image when user click on thumb?

look attached file plz.
11.jpg
1637 x 974 - 183K

Comments

  • AirAir
    Posts: 10,970
    Go to hypershot\advance\utilities.php line~520 and change this
                if( !empty( $img ) ){
                    ?>
                    <div class="item-image post-media">
                        <a href="<?php the_permalink( $post_id ); ?>"><?php echo $img; ?></a>
                    </div>
                    <?php
                }
    to
                if( !empty( $img ) ){
                    if(is_single()):
                    ?>
                    <div class="item-image post-media">
                        <?php echo $img; ?>
                    </div>
                    <?php
                    else:
                    ?>
                    <div class="item-image post-media">
                        <a href="<?php the_permalink( $post_id ); ?>"><?php echo $img; ?></a>
                    </div>
                    <?php
                    endif;
                }
    ivanesi said: Air, i think i have to buy a cup of cofee for you already
    Haha no need ;-)

    With regards.
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

In this Discussion