WordPress.org

Ready to get started?Download WordPress

Forums

lightbox vs. prettyPhoto (1 post)

  1. webkid
    Member
    Posted 3 years ago #

    I am using a WordPress theme + the lightbox evolution plugin 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
    //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
    //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>';

Topic Closed

This topic has been closed to new replies.

About this Topic