Skip to content

nairdairda/Flexify

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Flexify

FlexSlider, a powerful and responsive image slider, for use in any Shopify theme.

Currently Flexify supports up to 5 images, with optional linking.

Requirements

  • jQuery 1.6.2 or higher

Setup

Follow the steps below to setup Flexify on your Shopify site.

Asset uploads

Upload all the files from the assets folder into your theme assets.

Snippet creation

Create a new snippet and name it 'flexify'. Copy and paste the contents of flexify.liquid into the file and save.

Settings

Add the contents of settings.html to the bottom of your theme's Configs > settings.html.

Implement

Open your theme's Layout > theme.liquid, and add the following into your header.

{% comment %}
	Load Flexify dependencies. Change template accordingly to enable the slider on other pages. Replace jquery.flexify.js with jquery.flexify.min.js for minified version. 
{% endcomment %}
{% if template == "index" and settings.slider_enabled %}
  {{ 'flexify.css' | asset_url | stylesheet_tag }}
  {{ 'jquery.flexify.js' | asset_url | script_tag }}
  <script type="text/javascript" charset="utf-8">
    $(window).load(function() {
      $('.flexify').flexify();
    });
  </script>
{% endif %}

Finally, include the Flexify snippet in your theme by adding the following in Layout>theme.liquid wherever your heart desires. Don't forget to wrap it if necessary (insert condom joke here).

{% if template == "index" and settings.slider_enabled %}
	{% include 'flexify' %}
{% endif %}

Enjoy!

Upload images, add links, and edit slider settings directly from your theme settings. Enjoy your new slider!

Authors

About

FlexSlider for use in any Shopify theme

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published