Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Featherlight plugin - gallery not working #104

Open
JHG-media opened this issue May 24, 2023 · 0 comments
Open

Featherlight plugin - gallery not working #104

JHG-media opened this issue May 24, 2023 · 0 comments

Comments

@JHG-media
Copy link

Since learn2 adds featherlight as standard asset and adds some featherlight related code in the learn.js file, the gallery activated in the plugin settings breaks/does not work and the featherlight scripts are loaded multiple times.

Remove this from learn.js

$(function() {
    $('a[rel="lightbox"]').featherlight({
        root: 'section#body'
    });
});

And kill

{% do assets.addJs('theme://js/featherlight.min.js') %}
{% do assets.addCss('theme://css/featherlight.min.css') %}

from base.html.twig.

After this, i successfully set up a featherlight gallery.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant