WordPress.org

Support

Support » Plugins and Hacks » Anyway I can link through to a lightbox?

Anyway I can link through to a lightbox?

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Stefan Boonstra

    @stefanboonstra

    The lightbox feature will be available in version 2.3.0, which has yet to be released. You can try to combine a lightbox plugin with the slideshow to create the same effect. You can find a couple of tips on how to do this in this thread.

    In this file you have to locate line number 57, where the <img /> tag is visible. Make this line look like this:

    <img src="<?php echo htmlspecialchars($imageSrc); ?>" alt="<?php echo $alt; ?>" rel="lightbox" <?php echo ($imageWidth > 0) ? 'width="' . $imageWidth . '"' : ''; ?> <?php echo ($imageHeight > 0) ? 'height="' . $imageHeight . '"' : ''; ?> />

    This all looks pretty straight forward but I can’t find the <img/> tag on line 57 this is what I can see

    if (empty($alternativeText))
    			{
    				$alternativeText = htmlspecialchars($attachment->post_content);
    			}

    Has the document changed since you posted the instructions?

    Thanks!

    [Moderator Note: Please post code & markup between backticks or use the code button. Your posted code may now have been permanently damaged by the forum’s parser.]

    Plugin Author Stefan Boonstra

    @stefanboonstra

    Yes, it’s moved down a lot of lines. It still looks very similar, so you should be able too find it.

    Hi I found the code on line 97, saved zipped up the whole plugin file uploaded successfully on WordPress, activated the light-box plugin and it still won’t work: http://www.easyplanwarwickshire.co.uk/test-page/ Did I miss a step?

    Thanks!

    Abdulrahman1

    @abdulrahman1

    me too , and still won”t work .

    =(

    i hope some one help us ..

    thank you so much stefan

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Anyway I can link through to a lightbox?’ is closed to new replies.