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

Margins for lightslider

Started by Muut Archive 11 years ago · 2 replies · 297 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 Deleted User, 9 years ago
0 1346 9 years ago
Archive · by Muut Archive, 9 years ago
2 933 9 years ago
Archive · by Muut Archive, 9 years ago
2 4060 9 years ago
Archive · by Muut Archive, 9 years ago
1 2945 9 years ago
Archive · by Muut Archive, 9 years ago
3 1117 9 years ago