iBlognet

Home Blogger Google

Disable Blogger Lightbox Feature

by Sahil Umatia

Update 22/09/2011 : Blogger rolls back the lightbox feature and will relaunch again with improvements to the lightbox feature, after a huge concerns laid out in Blogger forums.  

Recently blogger added lightbox feature for blogger blogs. Overall I liked this feature, except the image gets resized in lightbox if the width of the image is wider where the image looks squeezed. But everyone doesn’t have the same taste.

There has been a huge discussion about this feature in blogger groups. And going through this discussion it looks like most of the bloggers gave a thumbs down to this feature. Either due to lack of zoom in/out feature, or due to image resize problem. There should be an option to disable this feature somewhere in the editor or in the settings itself. Anyways, if you dislike this blogger feature, you can disable this by adding a simple script in your blogger template.

Login to your blogger account. Go to template and Edit HTML. Click Proceed and search for </head>. And just add the following code above the </head>tag.

<script type=’text/javascript’>
//CDATA[
function killLightbox() {
var images = document.getElementsByTagName('img');
for (var i = 0 ; i < images.length ; ++i) {
images[i].onmousemove=function() {
var html = this.parentNode.innerHTML;
this.parentNode.innerHTML = html;
};}}
if (window.addEventListener) {
window.addEventListener(‘load’,killLightbox,false);
} else {
window.attachEvent(‘onload’,killLightbox);
}
//]]>
</script>

Save your template and click any image from your blog. You can also add the script to the Layout section via HTML/Javascript gadget. See the video tutorial below:

Video Tutorial: 

Thanks JJ93 

Article by »


Sahil is the founder and editor of iBlognet. He is a freelance writer on topics related to Website Optimization (SEO), Blogging, and Tech. He also specializes in SEO, HTML, CSS and Photoshop. Sahil has written 277 fantastic article(s) on iBlognet.


Author Site » Know me More

Author Connect »

{ 0 comments… add one now }

Leave a Comment

We're glad that you chose to leave a comment. This blog uses KeywordLuv. Enter YourName@YourKeywords in the "Name" field to take advantage of link juice for your anchor text. Please keep in mind that all comments are moderated. Let's have a meaningful conversation.

CommentLuv badge
This blog uses premium CommentLuv Premium which allows you to put your keywords with your name if you have had 1 approved comments. Use your real name and then @ your keywords (maximum of 2)

Previous post:

Next post: