Quick use of timthumb in WordPress

Posted on: April 27th, 2014 by Theepan
<?php if(has_post_thumbnail()): ?>
<?php
	$post_thumbnail_src = wp_get_attachment_image_src(get_post_thumbnail_id($post->ID), array(628, 310), false, '');
	$img_src = $post_thumbnail_src[0];
?>
	<img src="<?php bloginfo('template_url'); ?>/inc/timthumb.php?src=<?php echo $img_src;?>&w=628&h=310&zc=1q=100" />
<?php endif; ?>

How would you add events to elements which are added by jQuery?

Posted on: November 3rd, 2013 by Theepan

We sometimes have to add elements to the DOM by jQuery. If we want to add events to those elements that wont work. But there  was a simple way to add events by using the .live() event/function.

$(document).ready(function(){
	$('.content').html('div class="btn">Button</div>'); // Adding a button DIV using jQuery
});

(more…)


Change nextgen album thumbnail size

Posted on: September 19th, 2013 by Theepan

In the file
plugins/nextgen-gallery/
products/modules/
nextgen_basic_album/
adaptor.nextgen_basi_album_controller.php

Line 155


WordPress useful codes

Posted on: July 3rd, 2013 by Theepan

Get the post type. Put it in single.php file (more…)


Mulitlevel Responsive Menu with CSS and jQuery

Posted on: June 29th, 2013 by Theepan

Hello, I had to make a responsive menu for one of my client’s website. After searching for a clean coded but good looking responsive menu I realized that I can make a one instead of wasting my time online.  (more…)


Send email with php and jQuery Ajax function

Posted on: June 10th, 2013 by Theepan

The html markup for the form

(more…)


Introduction to PDO

Posted on: June 5th, 2013 by Theepan

PDO refers to Php Data Objects. This is the latest and most powerful extension. It has many features inbuilt. This class is coming with php 5.1 and above. As per php.net the team says mysql_connect function will be removed in the future. It is good idea to switch to PDO method now so that we wont be running issues when server php version upgraded.
(more…)


Detailed mascot design Inspirations

Posted on: December 13th, 2011 by Theepan

There are number of Mascot designers that I follow. They all very best in drawing characters. I have put some of them as Inspiration fot this week. Hope you enjoy too. (more…)


WordPress theme psd 01

Posted on: September 29th, 2011 by Theepan

Here is a wordpress theme design. You can use it for your own projects or commercial projects. This design has no restriction to use part of the design or full design except the photos used in this theme. Please consider that photos are copyrights to corresponding photographers. (more…)


free lion vector download

Posted on: September 25th, 2011 by Theepan

Hi there,

Today I have drawn a lion for my blog. Started in my drawing books and ended with following picture in Adobe Illustrator. Here is eps file to download.  thanks  n c u :) (more…)


12