Use of Blogger Lightbox in Custom Template

雨燕双飞 提交于 2020-01-15 11:15:18

问题


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>


来源:https://stackoverflow.com/questions/43591877/use-of-blogger-lightbox-in-custom-template

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!