[lightgallery]
[lgallery] [/lgallery]
For this demo page –
-shortcode for bootstrap collapsible scripts
-shortcode for lightGallery scripts
<div id=”lightgallery” class=”list-unstyled row”>
-Images with thumbnails – I made thumbnails as small as possible.
-use data-sub-html=”
<p>this is the title.</p>
<p>” after the href= for caption.</div>
-close bootstrap collapsible shortcode
- Create a lightgallery.php for shortcode
<?php
add_shortcode( ‘mygallery’, ‘mygalleryscript’ );
function mygalleryscript() {
return
‘<link href=”/idogjs/lightGallery/dist/css/lightgallery.css” rel=”stylesheet”><script src=”https://ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js”></script><script src=”/idogjs/lightGallery/dist/js/lightgallery.js”></script><script src=”/idogjs/lightGallery/dist/js/lg-fullscreen.js”></script><script src=”/idogjs/lightGallery/dist/js/lg-thumbnail.js”></script><script src=”/idogjs/lightGallery/dist/js/lg-autoplay.js”></script><script src=”/idogjs/lightGallery/dist/js/lg-zoom.js”></script><script src=”/idogjs/lightGallery/dist/js/lg-hash.js”></script><script src=”/idogjs/lightGallery/dist/js/lg-pager.js”></script><script src=”/idogjs/lightGallery/lib/jquery.mousewheel.min.js”></script><script type=”text/javascript”>
var $jG=jQuery.noConflict();
$jG(document).ready(function(){
});
</script>
<script src=”/idogjs/lightGallery/dist/js/idogGallery.js”></script>’
; }
- Include in theme function.php
include ‘lightgallery.php’;
- Make sure all the scripts are in the correct folder url.
- How To Split Prefix Database To Individual Database For WordPress
- Author Avatar Picture In WordPress 3.9.X
- Twenty Fourteen Theme Customization
- Install XAMPP 1.8.3 And WordPress 3.9 On Mac OS X Mavericks 10.9.2
- Replace A String With New String For All Posts In WordPress