Skip to content

Featherlight plugin - gallery not working #104

@JHG-media

Description

@JHG-media

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions