Skip to content

How can I add more LightGallery plugins (lgZoom, lgAutoplay, lgComment, lgFullscreen , lgHash, lgPager, lgRotate, lgShare, lgThumbnail, lgVideo, lgMediumZoom? #176

Answered by HEIGE-PCloud
javierfs asked this question in Q&A
Discussion options

You must be logged in to vote

You need to update the $config variable as well.

The $config variable is a dictionary including all the options for lightgallery. lightgallery will be initialized by calling lightGallery(document.getElementById('content'), $config).

For example, you probably want to change it to

{{- $config = dict "selector" ".lightgallery" "speed" 400 "hideBarsDelay" 2000 "thumbnail" true "exThumbImage" "data-thumbnail" "thumbWidth" 80 "thumbContHeight" 80 "actualSize" false "fullScreen" true | dict "lightGallery" | merge $config -}}

to enable the fullscreen plugin.

Be aware that DoIt theme is still using lightgallery.js 1.x, so you need to pick up the corresponding plugins for them to work correctly.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@javierfs
Comment options

@javierfs
Comment options

@HEIGE-PCloud
Comment options

Answer selected by HEIGE-PCloud
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #175 on August 11, 2021 15:21.