Skip to content
● Meet Grav Guard: keep every Grav site you run secure and up to date, all from one place. Free for up to 3 sites. Read more →

Margins for lightslider

Started by Muut Archive 11 years ago · 2 replies · 530 views
11 years ago

im trying the lightslider plugin. it works. but id like to be able to set a small right and left margin. is this possible?
thanks.

11 years ago

ok, turns out there isnt any grav-lightslider defined.

added this to lightslider-custom.css

CSS
.grav-lightslider {
    padding-left: 1rem;
    padding-right: 1rem;
}

however, i don't know if there's a way to get variables from pages into this plugin. to change the values, for example.

11 years ago

You would have to override the lightslider twig in your theme or something to take any additional options. totally doable though.

Suggested topics

Topic Participants Replies Views Activity
Archive · by Muut Archive, 10 years ago
1 673 1 week ago
Archive · by Deleted User, 9 years ago
0 3043 9 years ago
Archive · by Muut Archive, 9 years ago
2 1983 9 years ago
Archive · by Muut Archive, 9 years ago
2 5337 9 years ago
Archive · by Muut Archive, 9 years ago
1 4134 9 years ago