Home / Forums / DynamiX Support / Enable Lightbox Globally

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts

  • Justin Anfinson
    Participant

    Hello,

    I haven't been able to find it, but can you enable lighbox globally without having to use the image shortcode everytime?

    Thanks!

    Andy
    Andy
    Keymaster

    Hi Justin,

    Unfortunately there is no global option. You can add this manually to the DynamiX/footer.php – find the following code. 

    $("a[rel^='prettyPhoto'],p.description a").prettyPhoto({

    keyboard_shortcuts: false,

    social_tools:false,

    theme: 'light_rounded'

    });

    change to 

    $("a[rel^='prettyPhoto'],p.description a, .entry a img").prettyPhoto({

    keyboard_shortcuts: false,

    social_tools:false,

    theme: 'light_rounded'

    });

    That will lightbox any image that is surrounded by an <a> (link) tag. i.e. images inserted by WordPress. 

     

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.