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

News

Think outside the box

Start to think outside the box. UnBox is a new WordPress theme for the willing. Using jQuery in fluidity.

Published

on

Officially released today, this theme is a custom WordPress theme for those who want something different.

Built with loads a jQuery tricks and features. This theme is available for purchase. And dhould be up on ThemeForest as soon as they process the files.

For now, you can check out the working demo, and if you like the theme, use this link to [wp_eStore_buy_now:product_id:2:end].

[wp_eStore:product_id:2:end].

Continue Reading

Themes

Ben Dunkle on designing icons for WordPress [video]

I know many people attendedWordCamp 2009, in fact I believe there were 700 plus attendees. Well not every one showed up at the development day which was held at the Automattic office on pier 38.

WordCamp Development day was a BarCamp style event, and I was able to record a couple of the conversations. Here is a recording from Ben Dunkle (designer of the WordPress admin icons in 2.7+)

Published

on

The first video uploaded to you tube that was approved, Ben Dunkle, designer of the admin icons you see on your WordPress install.

Links:

Continue Reading

News

The release of Galleria, a gallery child theme of Hybrid

As the WordPress community grows, so does the amount of available themes. Galleria is a gallery-style child theme for WordPress built on the Hybird theme framework. Originally, this theme was created by Chirs Wallace for the Thematic theme framework and released at Smashing Magazine.

Published

on

So I am excited to announce another theme release from WPCult and Frosty Web Designs. A few days back, I came across this post at Smashing Magazine.

Just recently we asked you to let us know what theme you would like us to release next. Among numerous comments we found many request for a gallery-theme that could be particularly useful for portfolios and showcases. At the very same time Christopher Wallace has been designing an advanced gallery-WordPress-theme for the design community and Smashing Magazine’s audience. And today finally we are proud to release it – for free, of course.

Well, I liked this theme, and while I am a big fan of the Thematic theme, I know there are many out there who love Hybrid. Hybrid is Justin Tadlocks theme framework, which can be downloaded for free at http://themehybrid.com/themes/hybrid.

Just an FYI, this site is running hybrid as a parent theme. 🙂

So…

I contacted Chris and told him of this theme port I would be doing. After a few days of modifications, bug fixes, and styling, the theme is ready for public release.

While Galleria shares a few qualities with his sibling, the differences are notable in the style, color, and layout throughout the theme, including the theme options.

More info

For more info and documentation, refer to the readme.html file included in the download or visit the Galleria theme page.

Some features

  • dynamic image re-size on a single page.
  • WordPress 2.7 compatible
  • Built on the Hybrid framework
  • jQuery hover effects
  • jQuery scrolling effects.
  • ‘Save to Delicious’ link
  • ‘Tweet This’ link
  • Flexible footer widget area

Download [download#5#format=2]

Continue Reading

Random Search Terms

Title

Recent Posts: Fully Net Worth . com

David Bromstad Net Worth: How Rich is David Bromstad Actually?

David Bromstad Net Worth: How Rich is David Bromstad Actually?

David Reed Bromstad is an American designer and television personality who is best known for being the host of the show called Color Splash with David Bromstad. Moreover, he is also the host of HGTV’s My Lottery Dream Home helping lottery winners to buy their dream real estate. As of 2019, David Bromstad net worth […]

FaZe Jarvis Net Worth: How Rich is FaZe Jarvis Actually?

FaZe Jarvis Net Worth: How Rich is FaZe Jarvis Actually?

FaZe Jarvis is an English Fortnite player. He is the brother of popular YouTuber FaZe Kay of the Call of Duty gaming group FaZe Clan. As of 2019, FaZe Jarvis net worth is estimated to be $600,000. FaZe Jarvis was born on November 11, 2001, in England. He is more of a new streamer. He […]

Jessica Nigri Net Worth – Hot Gossip and info

Jessica Nigri Net Worth – Hot Gossip and info

Jessica Nigri Net Worth Although she was brought up in New Zealand, Jessica Nigri is from America and she is a cosplay celebrity, voice actress, social media personality, and model. She has a net worth of close to $15. Million. Jessica was born in the U.S. state of Nevada in Reno in August of 1989. […]

Michael Imperioli net worth.

Michael Imperioli net worth.

Michael Imperioli net worth James Michael Imperioli is an actor and TV writer with Italian-American origins. Michael has a net worth close to $25 million. Michael was born in March 1966 in the Mount Vernon area of New York. He grew up in the different areas of New York City, such as New Jersey, Ringwood, […]

Trending