Skip to content

Instantly share code, notes, and snippets.

@carolineschnapp
Created August 10, 2015 03:24
Show Gist options
  • Save carolineschnapp/5bb389029b769cb89500 to your computer and use it in GitHub Desktop.
Save carolineschnapp/5bb389029b769cb89500 to your computer and use it in GitHub Desktop.
Add a Flexslider slideshow to any amount of regular pages in 3 easy steps. #slideshow #flexslider
  1. Add a bunch of images to a 'page'. Just images. No markup besides img elements.
  2. Create a page.lookbook template and in it, add the code below.
  3. Assign template to page.
<div class="span12">
<div class="flexslider-container">
<div class="flexslider">
<ul class="slides">
{{ page.content }}
</ul>
<div class="flex-controls"></div>
</div>
</div>
</div>
<script>
$('.slides').find('img').wrap('<li></li>');
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment