Connect with us

Themes

Jon Asked: How to add thumbnails above post on the THiCK theme

Published

on

I was asked by a reader:

I’m using the THiCK theme for my new design blog. I noticed you were able to add thumbnail images above your blog posts on the home page. What would I need to do to enable this on my blog?

Well Jon, this can be done very simple, since the theme is already using the Tim Thumb script.

What you will need to do is find in your index.php file, the second loop. Which you can find on line 40.

<?php query_posts('offset=1&showposts=' . get_option('woo_other_entries') . '&cat=-' . $GLOBALS['ex_asides'] ); ?>

<?php while (have_posts()) : the_post(); ?>	

	<div class="post">
		<h2><a title="Permanent Link to <?php the_title(); ?>" href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></h2>
		<div class="post-meta"><?php the_time('j/m/y'); ?> <span>|</span> <?php comments_popup_link('0 Comments', '1 Comment', '% Comments'); ?></div>
		<?php the_excerpt(); ?>
	</div>

<?php endwhile; ?>

Now we are going to add in the code. At line 43 we are going to add:

<?php if (get_option('woo_resize')) { // Check if we should use the image resizer ?>
                    <a title="Continue reading this entry..." href="<?php the_permalink() ?>" rel="bookmark"><img src="<?php echo bloginfo('template_url'); ?>/thumb.php?src=<?php echo get_post_meta($post->ID, "image", $single = true); ?>&amp;h=80&amp;w=280&amp;zc=1&amp;q=90" alt="<?php the_title(); ?>" /></a>
                <?php } else { ?>
                    <a title="Continue reading this entry..." href="<?php the_permalink() ?>" rel="bookmark"><img src="<?php echo get_post_meta($post->ID, "image", $single = true); ?>" alt="<?php the_title(); ?>" /></a>
                <?php } ?>

That’s it, just make sure that in the THiCK options panel you choose the “resize” option, or the image might break the layout. Or you may change the this code: $post->ID, "image", to: $post->ID, "image_thumb", and use a separate image for the lower blog.

Continue Reading
11 Comments

11 Comments

  1. Jon Engle

    February 11, 2009 at 1:22 pm

    Thanks for the post! I’m going to try this out this afternoon.

    • frosty

      February 11, 2009 at 1:54 pm

      Absolutely, let me know how it goes!

  2. Thomas

    February 20, 2009 at 1:23 pm

    I tried this but the the image double up the main featured article. So I have the Large image and then the smaller thumbnail under it. Both lead to the same entry.

    • frosty

      February 20, 2009 at 5:30 pm

      Hmm, that’s seems odd.

  3. Thomas

    February 21, 2009 at 7:43 am

    Nevermind, I was inserting on the wrong line. Looks like it was Line 45 for me.

    • frosty

      February 21, 2009 at 7:17 pm

      Oh, Sorry about that. Maybe I shouldn’t write what line it may be on.
      Hope it works out! Just remember to look for the correct php code as well.

  4. cesar

    February 22, 2009 at 9:09 pm

    thanks for the post.
    I don’t know much about code, and I’m having the same problem of Thomas.
    Could you show the exacto point to insert the code?

    THANKS!!

  5. Bedava film izle

    March 20, 2009 at 7:21 am

    thanks for sharing.

    Bedava film izle´s last blog post..Lower Learning

  6. Adrian Vianna

    March 31, 2009 at 12:31 pm

    Worked out nicely. I have another questions where would we go to do this on the actual category post in this theme.

  7. Adrian Vianna

    March 31, 2009 at 12:56 pm

    Oh I got it. I added the same code in the first loop to the archives.php and you got a thumbnail for your category post.

    Adrian Vianna´s last blog post..Tiger Woods Most Dominant Ever?

    • Austin

      March 31, 2009 at 1:11 pm

      Yeah, that will take care of that! 🙂

You must be logged in to post a comment Login

Leave a Reply

Themes

Mimbo 3.0

Published

on

I was just looking around and saw that Darren Hoyt has released Mimbo 3.0. If your looking for a nice free theme, head over to Darren’s site.

You can also use this link to see a live demo.

Continue Reading

Premium

Revolution Two: TV Theme

Published

on

Benefits include the TV theme, unlimited theme support answered by our experts, customization techniques with our detailed theme tutorials and professional design services available by our list of recommended designers.

Revolution 2: TV Theme

Price:

Single License: $59.95 Buy Now!
Pro Plus All-Theme Package: $199.95 Buy Now!

Continue Reading

Premium

Revolution Two: Church Theme

Published

on

Benefits include the Church theme, unlimited theme support answered by our experts, customization techniques with our detailed theme tutorials and professional design services available by our list of recommended designers.

Revolution 2: Church Theme

Price:

Single License: $59.95 Buy Now!
Pro Plus All-Theme Package: $199.95 Buy Now!

Continue Reading

Random Search Terms

Title

Recent Posts: Fully Net Worth . com

True Geordie Net Worth: How Rich the English Podcaster Actually?

True Geordie Net Worth: How Rich the English Podcaster Actually?

Brian Davis, who is better known online as True Geordie, is a British Youtuber. He is best known for his podcast called the True Geordie Podcast along with editor Laurence McKenna where their focus is on interviewing with different Youtubers and Influencers. His channel has a total of 1.7 million subscribers. As of 2019, True […]

Bert Kreischer’s Net Worth: 5+ Things you need to know.

Bert Kreischer’s Net Worth: 5+ Things you need to know.

Bert Kreischer’s Net Worth I could not find a year-by-year breakdown of Bert Kreischer’s net worth from 2015 to 2023. However, I did find different estimates for his net worth in 2023, ranging from $4 million to $14 million​1​​2​​3. In 2022, his net worth was estimated to be $16 million, according to Forbes​4. Other sources […]

Brooks Koepka Net Worth

Brooks Koepka Net Worth

Who is Brooks Koepka? Brooks Koepka is an American golfer who mostly plays on the PGA Tour. He won his first major championship at the U.S. Open in 2017. Early Life Brooks was born on May 3, 1990, in West Palm Beach, Florida to Bob Koepka and Denise Jakows. He went to Cardinal Newman High […]

Ryan Garcia Net Worth: How Much is the Boxer Worth Actually?

Ryan Garcia Net Worth: How Much is the Boxer Worth Actually?

Ryan Garcia is an American professional boxer who competes in the lightweight division. Most recently, he became the winner of the WBO–NABO and WBC Silver lightweight title. He recently signed a deal with Golden Boy Promotions, which is said to be one of the most lucrative boxing deals for a prospect. As of 2019, Ryan […]

Trending