WordPress.org

Ready to get started?Download WordPress

Forums

Lightbox Plus Colorbox
Lightbox Not Working With Franciumous Theme Thumbnail (1 post)

  1. Rizki Andrianto
    Member
    Posted 1 year ago #

    Hi, I use Franciumous theme in my wordpress.
    I've changed the theme function so if the thumbnail clicked it's not go to post but larger image.
    But this plugin doesn't appear when I click the image, it's just go to larger image.
    Can you help me?

    FYI:
    This is the function that I've changed (maybe can help)

    Before :

    <a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>">
    				<?php
    					if (has_post_thumbnail()) {
    						the_post_thumbnail($thumbnail_type);
    					} else {
    						echo '<img class="image-thumbnail" alt="Default thumbnail." src="' . $padd_image_def . '" />';
    					}
    				?>
    			</a>

    After

    <?php  if ( has_post_thumbnail()) {   $large_image_url = wp_get_attachment_image_src( get_post_thumbnail_id(), 'large');   
    
    echo '<a href="' . $large_image_url[0] . '" title="' . the_title_attribute('echo=0') . '">';   
    
    the_post_thumbnail($thumbnail_type);   
    
    echo '</a>'; } ?>

    My site : http://design.rizkiandrianto.com

    Thanks in advance ;)

    http://wordpress.org/extend/plugins/lightbox-plus/

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

  • RSS feed for this topic
  • Started 1 year ago by Rizki Andrianto
  • This topic is not resolved
  • WordPress version: 3.5.1