Forums

Open thumbnails in lightbox (6 posts)

  1. cnydaria
    Member
    Posted 1 year ago #

    I am running a customized version of Graph Paper Press's fullscreen.

    Rather than clicking a thumbnail and being redirected to a new page, which is tiresome, how and what can I use such that clicking the thumbnail will open either the image in a lightbox/fancybox/etc or open the post itself in a box?

    I think I can use facebox to achieve that but I'm not sure where the a href links are generated for the thumbnails (not familiar with PHP).

    A little help please? : )

    My URL is here.

    Here's an excerpt of how the thumbs are generated (I believe). I think this is staring at me in the face but I need to teach myself PHP. Hopefully this can be easily answered!

    <div class="home-thumbs">
    <?php $home_query = new WP_Query("cat=&showposts=6"); $i = 0; ?>
    <ul class="thumbs">
    	<?php while ($home_query->have_posts()) : $home_query->the_post();
    	    $do_not_duplicate = $post->ID; $i++; ?>
    
    	    <li class="post-<?php the_ID(); ?> thumb-big"><?php get_the_image( array( 'custom_key' => array( 'thumbnail' ), 'default_size' => '320x320', 'width' => '320', 'height' => '320' ) ); ?></li>
    
        <?php endwhile; wp_reset_query(); $i = 0; ?>
    </ul>
    </div>
  2. esmi
    Theme Diva & Forum Moderator
    Posted 1 year ago #

    Try installing a lightbox plugin.

  3. cnydaria
    Member
    Posted 1 year ago #

    I have a lightbox plugin already. : )

    I'm trying to find where my links are generated.

  4. esmi
    Theme Diva & Forum Moderator
    Posted 1 year ago #

    The images are being generated by <?php get_the_image( array( 'custom_key' => array( 'thumbnail' ), 'default_size' => '320x320', 'width' => '320', 'height' => '320' ) ); ?>

  5. cnydaria
    Member
    Posted 1 year ago #

    Thanks, but I'm looking for where the links are being generated so I can insert a rel="__" defined by a lightbox plugin. : )

  6. rleigh
    Member
    Posted 1 year ago #

    Was there ever a solution to this??? I am having the exact same problem!! Thanks :)

Topic Closed

This topic has been closed to new replies.

About this Topic