Changing the default thumbnail

This thumbnail on the front page beside an excerpt of an article is a default image.  This image is called by the Plugin Get the image.  If an article has no images of its own the default image will be called.  If an article has an image the first image in the article is called.  Most people like pictures and this is why I have included it in this theme.  If you want to change the default image just make a new thumbnail.jpg image and upload it to the images folder in the breathe theme. The image should be thumbnail size 100x100px.

Default Thumbnail

Default Thumbnail

To make it so that double images are not shown on the front page put the first image after the first paragraph or at least 70 words into the a post.  This is because the except will show the first 70 words as I have set it up and will include an image if it is in the first 70 words.

In version 1.7 I disabled the default thumbnail.  You can reinstate it if you find this line of code in the index.php file

<?php if ( function_exists( 'get_the_image' ) ) { get_the_image(); } ?>

and replace it with this

<?php if( function_exists( 'get_the_image' ) ) get_the_image( array( 'default_image' => '../wp-content/themes/breathe/images/thumbnail.jpg')); ?>
Related Posts
  • No Related Post

One Response to “Changing the default thumbnail”

  1. Jun 30th, 2009 :

    [...] relevant post. If there is no picture for the post it will insert a default image. Read the “changing the default thumbnail” post for more [...]

Leave a Reply

Name (Required)

Email (Required - will not be published)

Website

Message (Required)