In post #65335 ARI support offered a couple of code examples for turning off Lightbox for certain types of links. One was:
-----Open "ARI Fancy Lightbox -> Settings -> Advanced" page and populate "Custom JS code" parameter with the following code:
Code:
var ignoreSites = [
'google.com',
'yahoo.com'
];
$('a[href]').each(function() {
var $a = $(this), domain = ARI_FANCYBOX_HELPER.getLinkPart($a.attr('href'));
if (ignoreSites.indexOf(domain) !== -1) {
$a.addClass('no-lightbox');
}
});
It will ignore links for google.com and yahoo.com sites. You can populate ignoreSites variable with your domains.-----
Another dealt with turning off links with the "
www" string in the url. The response fro ARI Soft for this was:
----The code doesn't work because links on the page contains www. prefix, but it is not specified in ignoreSites variable. You can use the following code to ignore links with or without "
www." prefix:
Code:
var ignoreSites = [
'google.com',
'yahoo.com'
];
$('a[href]').each(function() {
var $a = $(this), domain = ARI_FANCYBOX_HELPER.getLinkPart($a.attr('href')).replace(/^
www./i, '');
if (ignoreSites.indexOf(domain) !== -1) {
$a.addClass('no-lightbox');
}
});-------
Could you please provide the code that I could add if I wanted to turn off Lightbox for links to local pdf files that contain the "#page=" string in the url?
Apologies for this additional request, but I am not skilled in JS.
Thank you!