I am trying to add image gallery feature on my bootstrap framework website.
I am using Blueimp for gallery. but the problem is that it doesn't show images it shows only next and previous buttons. Please help me.
Here is my Html Code:
<div id="blueimp-gallery" class="blueimp-gallery">
<!-- The container for the modal slides -->
<div class="slides"></div>
<!-- Controls for the borderless lightbox -->
<h3 class="title"></h3>
<a class="prev">‹</a>
<a class="next">›</a>
<a class="close">×</a>
<a class="play-pause"></a>
<ol class="indicator"></ol>
<!-- The modal dialog, which will be used to wrap the lightbox content -->
<div class="modal fade">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" aria-hidden="true">×</button>
<h4 class="modal-title"></h4>
<div id="links">
<a href="images/1.jpg" title="Banana" data-gallery>
<img src="images/thumbnails/1.jpg" alt="Banana">
</a>
<a href="images/2.jpg" title="Apple" data-gallery>
<img src="images/thumbnails/2.jpg" alt="Apple">
</a>
<a href="images/3.jpg" title="Orange" data-gallery>
<img src="images/thumbnails/3.jpg" alt="Orange">
</a>
</div>
</div>
<div class="modal-body next"></div>
<div class="modal-footer">
<button type="button" class="btn btn-default pull-left prev">
<i class="glyphicon glyphicon-chevron-left"></i>
Previous
</button>
<button type="button" class="btn btn-primary next">
Next
<i class="glyphicon glyphicon-chevron-right"></i>
</button>
</div>
</div>
</div>
</div>
Put the
div
element with #link ID outside of the entire code.Here is the help for Bootstrap blueimp:
https://github.com/blueimp/Bootstrap-Image-Gallery