Our site, keeping you up-to-date news.


Corporattica Theme: How to Enable Lightbox in Post

August 6, 2011 at 3:59 am | Blog | 4 comments


Corporattica theme has already embodied with Lightbox feature by Fancyzoom. For example, images in the bit sections in the home page and portfolio page.

But, how to enable the lightbox feature in your own post too? Here is the demo http://demo.pengbos.com/corporattica/?p=13

First, let’s look at the javascript, which enables the fancyZoom, in the header.php

		$(document).ready(function() {
			$('div.photo a').fancyZoom();

This will add the Zoom Effect to any a tag in the div tag classed with photo, and will show content relating to the id referenced in the href of the a tag.