Lightbox JS v2.0 Integration with Blogger Template

Create a simple Photolog using and Lightbox JS. A step by step guide for photo bloggers; to Integrate Lightbox with their existing Blogger publishing system.

Blogger is a popular weblog publishing system, which supports custom designs and templates. Meanwhile Blogger is not much popular as other blog publishing system like WordPress, etc for its support to Plug-ins. In other hand Lightbox JS is a simple, unobtrusive script used to overlay images on the current page. It is lightweight and works with most of the browsers with Javascripts enabled.

Yesterday, I was trying to publish my own Photolog. I was looking for a good web serice so that it would ease my task. I am with Blogger for a quite time and still I have not moved my blog to WordPress, even I wish so. So I decided to go with Blogger again with the FTP publishing enabled. But blogger didn’t have any ready made plug-in for Lightbox so I had to hack the code little bit. Blogger with Ligthbox would give any blog a realistic Photolog look.

Step by Step Guide:-

  1. Download the Lightbox JS script from Here and copy the scripts to your web server most likely where your blog is been published.
  2. Login into Blogger system and go to Template –> Edit HTML
  3. Add the below line into the Meta section of HTML tag
    <link rel="stylesheet" href="css/lightbox.css" type="text/css" media="screen">

  4. Add the following scripts tag in the header section of the HTML template
    <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>
  5. Check the CSS and make sure the referenced prev.gif and next.gif files are in the right location. Also, make sure the loading.gif and close.gif files as referenced near the top of the lightbox.js file are in the right location.
  6. Once you’re done Save the Template.
  7. With Blogger, we will not able to tweak their system directly, since it is not open source software. So we need to have little manual effort every time before you publish a photo log entry.
  8. After creating a blog entry in Blogger system, do the following steps before publishing.
  9. Go to Edit HTML option in the Post window as show in the figure
  10. Once you have uploaded the image you will see an entry similar shown in the figure below.
  11. Replace the selected code above with rel=”lightbox” as shown below
  12. You can also add title tag in tag to enable Caption in the LightBox displayed
  13. Now you’re all set and you can publish your Photolog.

If you like to have image sets for each post entry then you need to add rel="lightbox[group_name]" for all the images that you which to show in that particular group image set. It should be similar to the below image.
Now you have a wonderful Photolog to start with as I do; Visit my PhotoLog at The PhotoLog

54 thoughts on “Lightbox JS v2.0 Integration with Blogger Template”

  1. Pingback: Wordpress vs. Blogger - Äpfel vs. Birnen?

Comments are closed.

Scroll to Top