-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathreadme.txt
More file actions
50 lines (33 loc) · 1.9 KB
/
Copy pathreadme.txt
File metadata and controls
50 lines (33 loc) · 1.9 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
=== CS Splide Slider Block ===
Contributors: Erin McGowan | Frizzant
Tags: block
Tested up to: 5.9
Stable tag: 0.1.0
License: GPLv3
License URI: https://www.gnu.org/licenses/gpl-3.0.en.html
Displays Content in a Slider
== Description ==
Gutenberg block for displaying content in a slider with the amazing SplideJS Slider. By default it includes a non locked 'core/cover' block.
SplideJS Docs: https://splidejs.com/
== Installation ==
This section describes how to install the plugin and get it working.
This block is based upon Wordpress create-block. See https://developer.wordpress.org/block-editor/reference-guides/packages/packages-create-block/ for more detailed information ob building etc.
e.g.
1. Build the plugin with ``npm run build``
2. Upload the plugin files to the `/wp-content/plugins/cs-slider` directory.
3. Activate the plugin through the 'Plugins' screen in WordPress
== Frequently Asked Questions ==
= How do I change SplideJS slider settings? =
The file './src/options.json' contains an object that is passed to the 'frontend.js' script. You can simply add your options there, then rebuild the project with 'npm build'.
= What is the innerBlockWrapper.js for? =
This file is used to wrap the inner blocks in the slider. Due to the nature of gutenberg it is not directly possible to allow block-variations with specific attributes to be added.
This is a workaround to get blocks with presets to work.
== Screenshots ==
1. This screen shot description corresponds to screenshot-1.(png|jpg|jpeg|gif). Note that the screenshot is taken from
the /assets directory or the directory that contains the stable readme.txt (tags or trunk). Screenshots in the /assets
directory take precedence. For example, `/assets/screenshot-1.png` would win over `/tags/4.3/screenshot-1.png`
(or jpg, jpeg, gif).
2. This is the second screen shot
== Changelog ==
= 0.1.0 =
* Release