SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Member
    Join Date
    Apr 2011
    Posts
    2
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    lightbox vs. prettyPhoto

    I am using a Wordpress theme and changing the pretty photo to lightbox for my gallery, not sure what am I doing wrong. I changed the rel=prettyPhoto to class=lightbox. Thought maybe someone would know what I am missing. I am so close, or I think I am at least ha.

    Orginal Code using prettyPhoto

    Code:
    //output div and image in it echo '<div class="pictures_entry">'; echo '<a href="'.$attachments[$i]["location"].'" title="'.$attachments[$i]["title"].'" rel="prettyPhoto[gallery]"><img src="'.$attachments[$i]["location"].'" width="200" height="120" alt="'.get_the_title().'" />'; echo '</div>';
    New Code using lightbox

    Code:
    //output div and image in it echo '<div class="pictures_entry">'; echo '<a href="'.$attachments[$i]["location"].'" title="'.$attachments[$i]["title"].'" class="lightbox"[gallery link="location"]><img src="'.get_bloginfo('template_directory').'/includes/timthumb.php?src='.$attachments[$i]["location"].'" width="200" height="120" alt="'.get_the_title().'" />'; echo '</div>';

  2. #2
    SitePoint Mentor silver trophy
    Rubble's Avatar
    Join Date
    Dec 2005
    Location
    Cambridge, England
    Posts
    2,410
    Mentioned
    81 Post(s)
    Tagged
    3 Thread(s)
    Out of interest you joined this forum specificaly to post this question - why did you not join a wordpress forum?

    Searching google comes up with some instructions including this one: http://wordpress.org/extend/plugins/.../installation/

  3. #3
    SitePoint Member
    Join Date
    Apr 2011
    Posts
    2
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks for the info Rubble. I just saw good reviews for this forum so I joined, but I will check out a WP one now to see what help I can find. As for the link to the prettyPhoto documentation, I am still confused what I am missing, but will keep reading. Thanks !


Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •