Hello
i am looking for a way to integrate colorbox instead of lightbox. Without a configuration form, just simple open the colorbox.
Thanks for a tip

Comments

fortis’s picture

	$('#main-image img').live('click',function(event){
			var filepath = $(this).attr('src');
			filepath = filepath.replace('/imagecache/preview/', '/');
			$.fn.colorbox({
				speed: 600,
				photo:true,
				href: filepath
			});
			event.preventDefault();
	});

change '/imagecache/preview/' on your preset-path

daishin’s picture

Although this post is old, I would also like to ask the same question.
Is there a way to do it without going into the code.
If not, can fortis, please, be more clear as to how and where to put the code he writes above?

Thank you.

Anonymous’s picture

subscribe

theshanergy’s picture

subscribe

Leeteq’s picture

Version: 6.x-1.0 » 7.x-1.x-dev