Remove Thumbnails - prettyPhoto[ajax]
  • Is there a way to remove the thumbnails that appear on rollover?
    Thanks!
  • open jquery.prettyPhoto.js and find "Inject the inline gallery!"

    delete all code or mark it as a comment (/*......*/)

    Ex:
    // Inject the inline gallery!
    /*if(isSet && settings.overlay_gallery) {
    currentGalleryPage = 0;
    toInject = "";
    for (var i=0; i < pp_images.length; i++) {
    if(!pp_images[i].match(/\b(jpg|jpeg|png|gif)\b/gi)){
    classname = 'default';
    img_src = '';
    }else{
    classname = '';
    img_src = pp_images[i];
    }
    toInject += "";
    };

    toInject = settings.gallery_markup.replace(/{gallery}/g,toInject);

    $pp_pic_holder.find('#pp_full_res').after(toInject);

    $pp_gallery = $('.pp_pic_holder .pp_gallery'), $pp_gallery_li = $pp_gallery.find('li'); // Set the gallery selectors

    $pp_gallery.find('.pp_arrow_next').click(function(){
    $.prettyPhoto.changeGalleryPage('next');
    $.prettyPhoto.stopSlideshow();
    return false;
    });

    $pp_gallery.find('.pp_arrow_previous').click(function(){
    $.prettyPhoto.changeGalleryPage('previous');
    $.prettyPhoto.stopSlideshow();
    return false;
    });

    $pp_pic_holder.find('.pp_content').hover(
    function(){
    $pp_pic_holder.find('.pp_gallery:not(.disabled)').fadeIn();
    },
    function(){
    $pp_pic_holder.find('.pp_gallery:not(.disabled)').fadeOut();
    });

    itemWidth = 52+5; // 52 beign the thumb width, 5 being the right margin.
    $pp_gallery_li.each(function(i){
    $(this)
    .find('a')
    .click(function(){
    $.prettyPhoto.changePage(i);
    $.prettyPhoto.stopSlideshow();
    return false;
    });
    });
    };*/

    Thats all!
  • open jquery.prettyPhoto.js and find-

    if(pp_images.length>30)settings.overlay_gallery=false


    and change 30 to 0
    Your new code will look like this-
    if(pp_images.length>0)settings.overlay_gallery=false

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Login with Facebook Sign In with Google Sign In with OpenID Sign In with Twitter