Thursday, September 22, 2011

Disable Blogger Lightbox Gallery

bloggerBlogger recently turned live a lightbox gallery feature on all blogspot accounts. Problem is they didn’t ask users or even test it first on Blogger Draft. They also turned it ON by default without any option of turning the feature off. Some users who have implemented their own lightbox scripts were met with a double-popup when user click an image, including this blog. Other were furious because the update wrecked their site. There is now a Facebook page for Bloggers Against Lightbox. Instructions after the jump.

How to Disable Blogger Lightbox on your Blogspot

1. Login to your Blogger Account and go to your Layout Page
2. Add an HTML gadget
3. Input the code below and leave the title blank

------ start code----------

<script type="text/javascript">
//<![CDATA[
function killLightbox() {
  var images = document.getElementsByTagName('img');
  for (var i = 0 ; i < images.length ; ++i) {
    images[i].parentNode.innerHTML = images[i].parentNode.innerHTML;
  }
}
 
if (document.addEventListener) {
  document.addEventListener('DOMContentLoaded',killLightbox,false);
} else {
  document.attachEvent('onDOMContentLoaded',killLightbox);
}
//]]>
</script>

-------- end code -----------

Let me know if this works for you. Worked on mine.

[via] Google Support

blog comments powered by Disqus
 

What is Techolo?

Techolo (stands for Technology Outlook) talks about current technology trends, gadgets, news, reviews and other cool stuff. Techolo is a technology blog by Roman. From Zune's to iPads, Androids to Nokia's, Facebook to Twitter, and many more! Techolo.com | Technology Outlook Blog

Techolo - Philippine Technology Outlook Blog Copyright © 2010 Site Design by Prompt Designs