• Resolved w-prog

    (@w-prog)


    Hi,

    I have a page with pdf auto link.

    On the accordion “arrêtés” the light box fired but on accordion “décisions”, the lightbox doesn’t fired.

    I see that the class ari-fancybox-pdf ari-fancybox is present on a class but it’s not present on subfolder.

    Have you en explication please?

    I use wp file download of rmanage my pdf and i wrote the same message to this editor.

    Best regards

    • This topic was modified 1 year, 3 months ago by w-prog.

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Plugin Author arisoft

    (@arisoft)

    Hello

    It doesn’t work because content for sub-folders are loading dynamically. Open “ARI Fancy Lightbox -> Settings -> Advanced” page and populate “Custom JS code” parameter with the following code:

    if (typeof MutationObserver !== 'undefined') {
        var mutationObserver = new MutationObserver(function(mutations) {
            var nodesAdded = false;
            for (var i = 0; i < mutations.length; i++) {
                if ('childList' === mutations[i].type) {
                    nodesAdded = true;
                }
            }
            if (nodesAdded) {
                var instance = window['ARI_FANCYBOX_INSTANCE'];
                instance.convertElements();
            }
        });
    
        mutationObserver.observe(document.querySelector('body'), {
            childList: true,
            subtree: true,
            attributes: false
        });
    }
Viewing 1 replies (of 1 total)
  • The topic ‘automatically link’ is closed to new replies.