Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter GraceC

    (@gracec)

    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!

    Thread Starter GraceC

    (@gracec)

    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.]

Viewing 2 replies - 1 through 2 (of 2 total)