Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #431435

    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?

    #431929

    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

    #434185
    This reply has been marked as private.
    #434192

    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

    #434228
    This reply has been marked as private.
Viewing 5 posts - 1 through 5 (of 5 total)
  • The topic ‘Bug with Link to external image’ is closed to new replies.