Hi –
I am trying to link from a word to a link on dropbox. The link is an image. Unfortunately it will not go to the link, even though the link works. It opens as if there should be a lightbox image. Any idea what is wrong?
Hi David!
The theme activates the lightbox script automatically on all links containing .jpg, .png, etc, the thing is, Dropbox only allows the content to be viewed on their site, hence the error.
I’ll let Kriesi know about this issue, in the meantime, try the following: open js/avia.js and look for:
exclude : '.noLightbox, .noLightbox a, .fakeLightbox, .lightbox-added',
Replace it by:
exclude : '.noLightbox, .noLightbox a, .fakeLightbox, .lightbox-added, a[href*=dropbox.com]',
That will exclude Dropbox links from being lightboxed.
Cheers!
Josue
Hey!
Please copy your modified avia.js file to your child theme inside JS folder and then add following code to Functions.php file of your child theme
function wp_change_aviajs() {
wp_dequeue_script( 'avia-default' );
wp_enqueue_script( 'avia-default-child', get_stylesheet_directory_uri().'/js/avia.js', array('jquery'), 2, true );
}
add_action( 'wp_print_scripts', 'wp_change_aviajs', 100 );
Cheers!
Yigit