I am trying to add Facebox (a lightbox type image viewer) to my WordPress theme at but presently the images are not loading. I have tried hard coding this and also using the Facebox WP Gallery plugin with no success with either method yet.
I currently have it hard coded using this code in header.php
and on my custom home page template (I put the facebox files in facebox1.3
folder in my WP theme folder).
<link href="<?php bloginfo('stylesheet_url'); ?>facebox1.3/src/facebox.css" media="screen" rel="stylesheet" type="text/css" />
<link href="<?php bloginfo('stylesheet_url'); ?>facebox1.3/css/example.css" media="screen" rel="stylesheet" type="text/css" />
<script src="<?php bloginfo('template_directory'); ?>/facebox1.3/lib/jquery.js" type="text/javascript"></script>
<script src="<?php bloginfo('template_directory'); ?>/facebox1.3/src/facebox.js" type="text/javascript"></script>
<script type="text/javascript">
jQuery(document).ready(function($) {
$('a[rel*=facebox]').facebox({
loadingImage : 'facebox1.3/src/loading.gif',
closeImage : 'facebox1.3/src/closelabel.png'
})
})
</script>
At the moment with this even the loading gif does not display.
What am I doing wrong?