I use the fancybox plugin with Propulsion on my website. It's quite easy to install.
1) Download thr latest version from github ( https://github.com/fancyapps/fancyBox ) and place the source folder into the propulsion/js folder. Then rename the "source" folder to "fancybox".
2) Replace following code in header.php:
<link rel="stylesheet" href="<?php echo get_bloginfo('template_url'); ?>/js/prettyPhoto/css/prettyPhoto.css" type="text/css" media="screen"/>
with:
<link rel="stylesheet" href="<?php echo get_bloginfo('template_url'); ?>/js/fancybox/jquery.fancybox.css" type="text/css" media="screen"/>
<link rel="stylesheet" href="<?php echo get_bloginfo('template_url'); ?>/js/fancybox/helpers/jquery.fancybox-buttons.css" type="text/css" media="screen"/>
<link rel="stylesheet" href="<?php echo get_bloginfo('template_url'); ?>/js/fancybox/helpers/jquery.fancybox-thumbs.css" type="text/css" media="screen"/>
<link rel="stylesheet" href="<?php echo get_bloginfo('template_url'); ?>/js/projekktor/theme/style.css" type="text/css" media="screen"/>
and:
wp_enqueue_script( 'avia-prettyPhoto' );
with:
//wp_enqueue_script( 'avia-prettyPhoto' );
wp_enqueue_script( 'avia-fancybox' );
wp_enqueue_script( 'avia-fancybox-thumbs' );
wp_enqueue_script( 'avia-fancybox-buttons' );
wp_enqueue_script( 'avia-fancybox-media' );
Then open up functions.php and replace:
wp_register_script( 'avia-prettyPhoto', AVIA_BASE_URL.'js/prettyPhoto/js/jquery.prettyPhoto.js', 'jquery', "3.0.1", true);
with:
//wp_register_script( 'avia-prettyPhoto', AVIA_BASE_URL.'js/prettyPhoto/js/jquery.prettyPhoto.js', 'jquery', "3.0.1", true);
wp_register_script( 'avia-fancybox', AVIA_BASE_URL.'js/fancybox/jquery.fancybox.pack.js', 'jquery', "2.0", false);
wp_register_script( 'avia-fancybox-buttons', AVIA_BASE_URL.'js/fancybox/helpers/jquery.fancybox-buttons.js', 'jquery', "2.0", false);
wp_register_script( 'avia-fancybox-media', AVIA_BASE_URL.'js/fancybox/helpers/jquery.fancybox-media.js', 'jquery', "2.0", false);
wp_register_script( 'avia-fancybox-thumbs', AVIA_BASE_URL.'js/fancybox/helpers/jquery.fancybox-thumbs.js', 'jquery', "2.0", false);
And last open up js/avia.js and replace:
if($.fn.prettyPhoto)
elements.prettyPhoto({ social_tools:'',slideshow: 5000, deeplinking: false, overlay_gallery:false, default_width: ww, default_height: wh });
with:
if($.fn.fancybox)
elements.fancybox({
width : ww,
height: wh,
openEffect : 'elastic',
closeEffect : 'elastic',
prevEffect : 'elastic',
nextEffect : 'elastic',
helpers : {
thumbs : {
width : 50,
height : 50
},
buttons : {},
media : {}
}
});