How To Disable Lightbox View For Blogger Images?

Update: Lightbox Effect is Offcially Disabled by Blogger. No Worries now. Try a more correct way

lightbox view in bloggerBlogger just announced today that they have now automatically added Lightbox view effect to all blogs by default. Now when you click on your images or photos, a wide black I frame window opens that fades the page in the background and shows you the image in foreground without leaving the page. Lightbox is also called as Greybox or thickbox. It is a cool image effect that you have seen widely used everywhere especially on Facebook and Google+. But for some people like me this effect has turned into a headache. Even the read more buttons on my blog when clicked popped in a new window instead of taking the user to the full post page. So of course there must be a way to disable it completely in your blogs and if you wish to apply it with complete control then you may add this effect manually by reading any tutorial found online on Lightbox view.

How to disable Lightbox view?

After digging into the CSS bundle link from the source file of my test blog, I managed to find the CSS class that enabled this effect and tried adding the display none property to the class but it badly effected the over all appearance of images everywhere.

Following is the CSS Link for lightbox


Following is the Javascript that activates the effect

_WidgetManager._RegisterWidget('_BlogView', new _WidgetInfo('Blog1', 'main', null, document.getElementById('Blog1'), {'cmtInteractionsEnabled': false, 'showBacklinks': true, 'postId': '5886606793797837055', 'lightboxEnabled': true, 'lightboxModuleUrl': ''}, 'displayModeFull'));

I tried calling the javascript and switched the lightboxEnabled command to false but it didn't work. It may sound funny to you all but yes I need help from you all here. If anyone of you knows how to override this function then please let me know because javascript is what I lack in my skills. So this post today ends for the first time as a question from me to you all. Any help is appreciated.

PS: I have posted my question to blogger team and I am sure they will provide us with a good solution.


There is still one solution

If you don't want the lightbox feature for a specific image then simply add the target="_blank" tag just after the image img tag. See the following example

Click it and you will find lightbox effect works here

Click it and you will find that bingo no effects is applied!

This is what I find as somehow helpful in controlling the image view. I am sure Blogger team will come up with a more effective solution soon.

Solution Found!

As mentioned earlier the only problem I faced was in calling the JavaScript function and even after calling it correctly I was not able to disable the effect. Thanks to EnglishJavaDrinker I just get to know that instead of adding the JavaScript above </head> we must add it between <body> and </head> which sounds really weird but it is working just perfectly!

Do this in order to disable the effect:

  1. Go To blogger > Design > Edit HTML
  2. Backup your template
  3. Search for </body>
  4. Paste the following code just below </body>

<script type='text/javascript'>
document.getElementById(&#39;main&#39;).innerHTML = document.getElementById(&#39;main&#39;).innerHTML.replace(&quot;&#39;lightboxEnabled&#39;: true,&quot;,&quot;&#39;lightboxEnabled&#39;: false,&quot;);


     5.  Save your template and you are all done!

I hope this will be helpful to all those who wish to get rid of this annoying effect unfortunately brought by blogger in a really wrong way. Peace and blessings pals! :)

If you don't want to get yourself into Serious Technical Trouble while editing your Blog Template then just sit back and relax and let us do the Job for you at a fairly reasonable cost. Submit your order details by Clicking Here »


We have Zero Tolerance to Spam. Chessy Comments and Comments with 'Links' will be deleted immediately upon our review.
  1. Thank you doctor of Blogger.
    it was very annoying feature for me.

  2. Thanks For The Amazing Tip....:)

  3. Hello Mohammad,
    i was facing this problem mainly for the Read More buttons but now its solved by you.
    you are true blogger champ.
    Thank you.

  4. This comment has been removed by the author.

  5. Mohammad but due to this script the left side sharing widget is getting affected so what to do?

  6. Does this feature fully roll in yet cz I can't see this effect in my blog ? I am not going to disable it :)

  7. Still Getting That Light-box Please Help :(

  8. Oh great it helped all. Indeed a pleasure. :>

    Yes I checked it and I will look into it. Really stuck with too many tasks buddy. Will do it once I am free.

    @Open door
    Blogger new features often take time till it is fully applied to all blogs worldwide. But they introduced the feature long ago so it must be working on your blog. Check your other blogs and see if you dont have any script installed that is blocking the effect.


    Please try this code instead

    <script type='text/javascript'>
    cambimagen = document.getElementByIdundefined'main');
    cambiarimg = cambimagen.innerHTML;
    cambiarimg = cambiarimg.replaceundefined/\/s1600/g,'/s00');
    cambimagen.innerHTML = cambiarimg;

    let me know if this works

  9. bro plz help me>>im need this cod..only similar your site
    show image>>

  10. Dear brother Mohd,
    When i encoutered this problem it did not take even a second to me to type mybloggerticks and rush for the help .And as I was 100% sure..... I did find the solution to this really frustrating problem deserve all the praise and my hearty saved my time,energy and all the irritation))))
    How are you ? I can see lot of articles and lot of good changes in the website.....great .
    God bless
    best wishes

  11. @Mohammad Bro - Not Working, Again Getting Same Problem...

    For an Experiment (i Made an another blog, then added some images After Then Used This Script It Just Worked Perfect! But was not Working on my Main Blog) :( #Please Help!

  12. Please rad this post: All problems should solve now


    Most welcomed sis. After all its your blog. :d
    I am badly stuck with studies and some project works sister. Need your prayers and I hope you and your family doing great! :D

    Please try the code I shared on my new post and also share your main blog's URL

  13. do you know how to add blogger lightbox to the template ?? please answer this question! thank's

  14. Oh gosh....thank you thank you! This thing has been annoying me for months. Nice to have it gone!

  15. really i found many solutions for my blog here

    thanks brother....

  16. Asalamualikum...

    Brother I used the code you mentioned above to disable light box view in blogger, but it really didn't work in my blog. Even the same code I used in my other blog it perfectly worked. Don't really know why its not working here.

    This is my blog when ever you got my message please lemme know how it would work?

    That's my blog. I'm waiting for your response.

    I really appreciate all your efforts to make blogging easy for all of us.