Quantcast
Channel: Site5 Free Premium WordPress Themes » All Posts
Viewing all articles
Browse latest Browse all 8865

Reply To: portfolio item click to URL

$
0
0

If I can’t have the image go to an URL, I would like for it not to do anything (no link). I just can’t figure out how to deactivate it.

On the portfolio page http://tammyfarringtoncreative.com/dev/?page_id=46 , I would like when you click on the image, for it to go to the portfolio item page when clicked, just like when you click on the text underneath image. Rafkocare, if I figure it out, I will post.

I’m trying to edit -template.portfolio.3cols.sidebar.php

<div class=”portfolio-item-hover-content”>

<?php $thumbId = get_image_id_by_link ( get_post_meta($post->ID, ‘snbp_pitemlink’, true) );
$thumb = wp_get_attachment_image_src($thumbId, ‘portfolio-thumbnail’, false);
$large = wp_get_attachment_image_src($thumbId, ‘large’, false);

if (!$thumb == ”){ ?>

” title=”<?php the_title(); ?>” data-rel=”prettyPhoto” class=”zoom”>View Image

” alt=”<?php the_title(); ?>” class=”portfolio-img” width=”220″ />
<?php } else { ?>
/library/images/portfolio-img.png” alt=”<?php the_title(); ?>” width=”220″ class=”portfolio-img” />
<?php } ?>

<div class=”hover-options”></div>
</div>
</div>


Viewing all articles
Browse latest Browse all 8865

Trending Articles