Post by alex80ks » Sun Jun 01, 2014 2:27 am

How can i make link to open custom image on custom page with lightbox effect in OC 1.5.4?

Thank you

Newbie

Posts

Joined
Mon Oct 01, 2012 1:06 am

Post by andrei.bogdan » Mon Jun 02, 2014 6:22 pm

You need to install the extended visual HTML editor and edit the 'class' attribute of the image. You can add the class 'colorbox'. You may also have to add this code in the bottom of the template 'information.tpl':

Code: Select all

<script type="text/javascript"><!--
$(document).ready(function() {
	$('.colorbox').colorbox({
		overlayClose: true,
		opacity: 0.5,
		rel: "colorbox"
	});
});
//--></script> 

Andrei
andrei.opencart[at]yahoo.com
Themes and Extensions


Active Member

Posts

Joined
Mon Mar 25, 2013 4:52 am
Who is online

Users browsing this forum: Bing [Bot] and 32 guests