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?

Doesn't convert links in sidebar menu
(1 viewing) (1) Guest
"ARI Fancy Lightbox" WordPress plugin
Go to bottomPage: 1
TOPIC: Doesn't convert links in sidebar menu
#63254
Doesn't convert links in sidebar menu 5 Years, 11 Months ago Karma: 0
Hi!

I just installed this plugin to display informational PDF files on a Wordpress site. I have a document that's linked in the body of the site, and when I click that link, it opens in the lightbox as expected -- yay! However, I also have a link to that same document in the sidebar (a Wordpress nav menu) and when I click on the link from there, it opens the PDF in a new tab instead of in the lightbox. Why is this? Is there any way for the plugin to convert links found in the page sidebars and navigation?

Thanks for your help
The administrator has disabled public write access.
 
#63255
Re:Doesn't convert links in sidebar menu 5 Years, 11 Months ago Karma: 748
Hello,

Could you provide a link to a page where the problem occurs?

Regards,
ARI Soft
The administrator has disabled public write access.
 
#63258
Re:Doesn't convert links in sidebar menu 5 Years, 11 Months ago Karma: 0
On this page, click on "Adult ADHD Self-Report Scale" in the green sidebar on the right. It opens in a new tab.

The same link opens in the lightbox on this page, where it can be found if you expand the ADHD section of the accordion.
Last Edit: 2018/06/14 22:58 By montannat.
The administrator has disabled public write access.
 
#63262
Re:Doesn't convert links in sidebar menu 5 Years, 11 Months ago Karma: 748
The problem occurs because menu extension attaches own click handlers to menu items and prevents execution of "ARI Fancy Lightbox" code. This behavior can be changed if add the following code to "Advanced -> Custom JS code" parameter on "ARI Fancy Lightbox -> Settings" page:

Code:


setTimeout(function() {
  $('.dcjq-accordion A.ari-fancybox').each(function() { var $this = $(this); var dh = $._data(this, 'events'); if (!dh || !dh.click) return; dh = dh.click; for (var i = dh.length - 1; i >= 0; i--) { if (!dh[i].namespace) { $this.off('click', dh[i].handler); } } });
}, 20);



Regards,
ARI Soft
The administrator has disabled public write access.
 
#63272
Re:Doesn't convert links in sidebar menu 5 Years, 11 Months ago Karma: 0
Thank you so much! This solution worked.
The administrator has disabled public write access.
 
Go to topPage: 1