Use of Blogger Lightbox in Custom Template

2019-08-09 03:15发布

问题:

I have a blog : http://www.rawdevart.com
I want a code which will help me get the blogger lightbox working.

I even tried putting

<script src='http://www.blogger.com/static/v1/jsbin/2321381434-lbx__fr.js' type='text/javascript'/>

code as I check a post in Blogger forum's but still didn't get it. Please help me with the code!

Here is the link for my blogger template : https://pastebin.com/J0S89qbr

回答1:

Login to Blogger. From your dashboard go to Settings>Posts comments and sharing then select 'Yes' for 'Showcase images with Lightbox' option. See if this helps.



回答2:

This problem is happening because the Blogger's default JavaScript has been commented out. Due to which the Lightbox CSS & JavaScript are not getting loaded on the page. Look for the following code in your theme XML -

&lt;!-- 
</body>
--&gt;&lt;/body&gt; 

and replace it with the following code

</body>