Archive for July, 2010


How to change header image width and height?

It is very easy to change the header image’s width and height. Goto 2010 theme folder and open the functions.php file. Go to line no 110 and 111, you can see this code

define( 'HEADER_IMAGE_WIDTH', apply_filters( 'twentyten_header_image_width', 940));
define( 'HEADER_IMAGE_HEIGHT', apply_filters( 'twentyten_header_image_height', 198) );

(more…)


In WordPress 2.9, the get_the_post_thumbnail is a new function that was added to allow you to select and display a post’s thumbnail image. If you have a version of 2.9+ installed, in your wp-includes folder, you will find a file called, post-thumbnail-template.php. Inside, the get_the_post_thumbnail() function is what will allow you to display your post’s thumbnail or thumbnails for a list of posts such as on your homepage or category (archive) pages. The get_the_post_thumbnail WordPress function will return your thumbnail in an html img tag so all you have to do is call the function where you want your thumbnail to be displayed, then style it using css. (more…)


Editing your theme’s functions.php file

WordPress version 3 does not allow you to create custom taxonomies from the administration screen. To initially define your custom taxonomies without a plugin, you’ll need to add a little bit of code to your theme’s functions.php file. This isn’t too difficult — just follow my lead.

To add custom taxonomies, we need to edit the “functions.php” file found inside your theme directory. Location of functions.php :  [website_root]/wp/wp-content/themes/[your_theme]/functions.php (more…)