简体   繁体   中英

Use of Blogger Lightbox in Custom Template

I have a blogger blog. 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

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.

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>

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM