Open a Wordpress portfolio thumbnail as lightbox instead if linking to portfolio item page -


currently theme using links each portfolio thumbnail corresponding portfolio item page. link thumbnail larger image using lightbox.

the current shortcode is:

$output .= '<li>';                     $output .= '<a href="'. get_permalink() .'">';                         $output .= get_the_post_thumbnail( null, 'portfolio-item', array('class'=>'scale-with-grid' ) );                         $output .= '<div>';                             $output .= '<span class="ico"><i class="icon-search"></i></span>';                             $output .= '<h6>'. the_title(false, false, false) .'</h6>';                         $output .= '</div>';                     $output .= '</a>';                 $output .= '</li>'; 

you can use jquery colorbox plugin achieving functionality want


Comments

Popular posts from this blog

html - Sizing a high-res image (~8MB) to display entirely in a small div (circular, diameter 100px) -

java - IntelliJ - No such instance method -

identifier - Is it possible for an html5 document to have two ids? -