Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #7414

    when you link a portfolio picutre with the lightbox the box will show a big image and a tiny one.

    this makes much sense if you have more than one picture.

    how can you tell lightbox that if only one picture exists it should not show the tiny picture in the lightbox?

    kind regards

    #57886

    Hey,

    we use the prettyphoto lightbox: http://www.no-margin-for-errors.com/projects/prettyphoto-jquery-lightbox-clone/ – I’m not very familiar with the lightbox code and I can’t provide a solution but maybe you can get help here: http://forums.no-margin-for-errors.com/

    If you’d like to deactivate the gallery thumbnails open up js/avia.js and replace

    elements.prettyPhoto({ "theme": 'premium_photo', 'slideshow': 5000 });

    with

    elements.prettyPhoto({ "theme": 'premium_photo', 'overlay_gallery': false, 'slideshow': 5000 });

    Edit you can try to replace following line in:

    if(pp_images.length>30)

    with:

    if(pp_images.length>30||pp_images.length<2)

    I haven’t tested the code but I hope it works.

    #57887

    hi dude,

    the first code works.

    however i cannot find

    if(pp_images.length>30)

    in the avia.js

    i assume this is to show the gallery only if there are 2 pics or more.

    well anyway it works awesome because if there are 2 images or more lightbox does show you arrows and a play button in the down left corner. enough for me needs. many thanks!

    #57888

    Sorry I forgot to mention: The “pp_images.length” code can be found in js/prettyPhoto/js/jquery.prettyPhoto.js

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

The topic ‘portfolio custom lightbox’ is closed to new replies.