Home News Contact Us Forum About Us Demos Products F.A.Q.
Shopping Cart
You currently have 0 items in your cart.


Recent Events
  • 31/12/2023 New Year SALE

    We are glad to announce New Year SALE. 25% discount for all our extensions. Use NY24 coupon code. Hurry up the discount is valid till 7 January.

  • 21/11/2023 BLACK FRIDAY 23 is coming

    BIG SALE, 35% discount for all our extensions. Use BF23 coupon code. Hurry up the discount is valid till 27 November.


2Checkout.com, Inc. is an authorized retailer of goods and services provided by ARI Soft. 2CheckOut




Follow us on twitter



Welcome, Guest
Please Login or Register.    Lost Password?

target="blank" attribute not re-loading
(1 viewing) (1) Guest
"ARI Fancy Lightbox" WordPress plugin
Go to bottomPage: 1
TOPIC: target="blank" attribute not re-loading
#72181
target="blank" attribute not re-loading 1 Month, 3 Weeks ago Karma: 0
Hi again,

Would really appreciate help in solving this.

www.wearetak.com

On first page load, the Ari Lightbox works perfectly. However, if I click on the "About" or "Contact" menu links, and go back to "Work", the attributes that make the lightbox work are missing in the html code. I'm assuming it's some sort of re-loading issue but not sure if there's a way to force that?

I am using a Wordpress theme called Semplice if that helps at all.

Thank you,
Alex
The administrator has disabled public write access.
 
#72191
Re:target="blank" attribute not re-loading 1 Month, 2 Weeks ago Karma: 754
Hello,

Unfortunately we can't open the site to investigate the problem. It is protected by password.

Regards,
ARI Soft
The administrator has disabled public write access.
 
#72194
Re:target="blank" attribute not re-loading 1 Month, 2 Weeks ago Karma: 0
Apologies. Password is 12345

Thank you,
Alex
The administrator has disabled public write access.
 
#72200
Re:target="blank" attribute not re-loading 1 Month, 2 Weeks ago Karma: 754
Currently we see the problem with dynamic content. Page content is received when password is entered and then this is dynamically injecting into current page without lightbox attribute. You can try to add the following code to "ARI Fancy Lihgtbox -> Settings -> Advanced -> Custom JS code" parameter:

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
    });
}



Regards,
ARI Soft
The administrator has disabled public write access.
 
#72216
Re:target="blank" attribute not re-loading 1 Month ago Karma: 0
Apologies for the late response..

This worked perfectly! Thank you so much for the support.

Best,
Alex
The administrator has disabled public write access.
 
Go to topPage: 1