View Full Version : lightbox script cant work on my wordpress

08-13-2007, 11:39 AM
1) Script Title:Lightbox image viewer 2.03

2) Script URL (on DD):http://www.dynamicdrive.com/dynamicindex4/lightbox2/index.htm

3) Describe problem: i uploaded my lightbox script folder and added the lines according the instructions on my domain.

however when i uploaded a pic on my domain hosted by wordpress blog, the effect doesn't comes out.

help pls?

my header:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

<head profile="http://gmpg.org/xfn/11">
<script type="text/javascript" src="js/prototype.js"></script>
<script type="text/javascript" src="js/scriptaculous.js?load=effects"></script>
<script type="text/javascript" src="js/lightbox.js"></script>
<link rel="stylesheet" href="css/lightbox.css" type="text/css" media="screen" />

<meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />

<title><?php bloginfo('name'); ?> <?php if ( is_single() ) { ?> &raquo; Blog Archive <?php } ?> <?php wp_title(); ?>’</title>

<meta name="generator" content="WordPress <?php bloginfo('version'); ?>" /> <!-- leave this for stats -->

<link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" media="screen" />
<link rel="alternate" type="application/rss+xml" title="<?php bloginfo('name'); ?> RSS Feed" href="<?php bloginfo('rss2_url'); ?>" />
<link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />

<?php wp_head(); ?>

<div id="wrap">
<div id="header"><h1><a href="<?php echo get_settings('home'); ?>/"><?php bloginfo('name'); ?>’</a></h1>
<p class="description"><?php bloginfo('description'); ?></p>
<img src="http://x.emeraldserver.com/~touchel/Wordpress/wordpress/wp-content/themes/minn-01/black.gif"/>

08-13-2007, 03:49 PM
There are specific instructions for using lightbox with wordpress here:


As to whether or not these can be used with your blog, I'm simply not certain, one way or the other.

It is also likely that a normal lightbox installation may be made to your page, if your blog host allows it. If going that route, one must make sure that the script is installed according to its installation instructions and that the generated HTML code of your page reflects the required lightbox syntax in its links for which the effect is desired.