Using Lightbox Plus with 2.5.1
-
If you’re having problems with Lightbox Plus and WP 2.5.1 then here’s how to fix it.
Open your post-template.php file from your wp-includes folder. Find this line of code (around line 390 or 391):
return "<a href='$url' title='$post_title'>$link_text</a>";
Replace it with this:
//noelgreen lightbox mod list($url, $w, $h) = wp_get_attachment_image_src($id, "full", $icon); $post_id = get_the_ID(); return "<a href='$url' title='$post_title' class='lightview' rel='gallery[$post_id]'>$link_text</a>";
That should do it.
Viewing 9 replies - 1 through 9 (of 9 total)
Viewing 9 replies - 1 through 9 (of 9 total)
- The topic ‘Using Lightbox Plus with 2.5.1’ is closed to new replies.