Skip to content

Easily turn WP gallery into a Slick slider through additional gallery settings

License

Notifications You must be signed in to change notification settings

herooutoftime/slick-wordpress-gallery

Repository files navigation

WP Slick Gallery

wp_slick_gallery_properties

Easily turn WP gallery into a Slick slider. Enable the plugin, add/edit your galleries and set slick properties through custom gallery sidebar options.

Description

Wordpress plugin to easily turn any gallery into a Slick-driven slider.

Before:

[gallery ids="1,2,3"]

After:

[gallery
    slick_use_slick="1" 
    slick_slides_to_show="1" 
    slick_slides_to_scroll="1" 
    slick_dots="1" 
    slick_arrows="1" 
    slick_infinite="0" 
    slick_draggable="1" 
    slick_autoplay="1" 
    slick_autoplay_speed="1" 
    slick_speed=".5"  
    slick_responsive="{breakpoint: 1024,settings: {slidesToShow: 3,slidesToScroll: 3,infinite: false,dots: true}}" 
    columns="4" 
    size="large" 
    ids="7,9,5,6"]

Installation

This is the most common way to install a plugin

  1. Download the ZIP
  2. Upload slick-wordpress-gallery folder to your /wp-content/plugins/ directory
  3. Activate the plugin through the 'Plugins' menu in WordPress
  4. Done!

Constants

Enable developer mode to use non-minified JS & output slick properties in frontend. Don't forget to turn off in production environment.

define('WP_SLICK_DEV', true);

To turn off CSS & JS injection via the plugin:

define('WP_SLICK_CSS', false);
define('WP_SLICK_JS', false);

If WP_SLICK_CSS is set to false you need to inject slick.css & slick-theme.css by yourself. If WP_SLICK_JS is set to false you need to inject slick.js by yourself and initialize slick.

Frequently Asked Questions

Is this a stable version?

No, it's not! Please be aware and use with caution

Which versions does this plugin support?

This plugin was tested extensively on:

  • 4.4.1
  • 4.5.3
  • 4.6.1

If any issues occur, please file an issue: https://github.com/herooutoftime/slick-wordpress-gallery/issues/new

Changelog

1.0.0

  • Initial version

Thanks

Ken Wheeler for Slick

WP-Info

About

Easily turn WP gallery into a Slick slider through additional gallery settings

Resources

License

Stars

Watchers

Forks

Packages

No packages published