Skip to content
Grav 2.0 is officially stable. Read the announcement →
Plugins

Implement lightslider

first-time

Started by Ancy_Seles 7 years ago · 3 replies · 1370 views
6 years ago

For the simple solution you linked to, without the "modular slider" option mentioned, you need to have this kind of structure:

YAML
pages
 |
  05.sliderpage
   |
   - mypage.md
   - slide_image1.jpg
   - slide_image2.jpg
   - slide_image3.jpg

Then you would put the first bit of Twig into your theme's templates folder as mypage.html.twig in this example. That Twig simply loops through every image file found in the same folder as the page using it, and selects them for the slider.

Also add the CSS listed to your theme's scss/_custom.scss (or create it). Unfortunately that example shows SCSS, which means you need to be running your CSS preprocessor for it to work.

There is also the lightslider plugin, which I find a bit clunky but much simpler to get going!

Let us know how you go.

6 years ago

Hallo Hugh,

Than you answering my question. Unfortunately, it didn’t work. I installed lightslideer. But it doesn’t work.

6 years ago

Hi Hugh,

I have tried below Imgae slider. But that doesn’t work

Suggested topics

Topic Participants Replies Views Activity
Plugins · by Rene, 1 week ago
2 80 1 week ago
Plugins · by Xavier, 4 weeks ago
2 84 4 weeks ago
Plugins · by Luka Prinčič, 7 years ago
3 1210 1 month ago
Plugins · by Sebastian van de Meer, 1 month ago
1 77 1 month ago
Plugins · by PIERROT Alain, 2 months ago
3 104 2 months ago