Removing Thumbnails From The Revolution Lifestyle Theme Homepage
I’ve used the Revolution Lifestyle theme quite a few times in some of my sites since I really like the layout and even the default color scheme goes together really well. By default the theme lists thumbnails for posts when they are being displayed on the homepage of the blog for each post. This can be a handy little feature which adds a little bit more to the homepage it isn’t always something that I necessarily need.
I figured I’d write up this quick post about removing the post thumbnails on the Lifestyle theme as it is a quick and easy process.
Editing home.php
The file we are going to be editing is home.php since that is what displays when we visit the URL to which you installed WordPress.
Scroll down through the code and find the <h3>Featured Category #1</h3> line. Scroll down a bit below and you’ll see <?php $recent = new WP_Query(”cat=1&showposts=3″); while($recent->have_posts()) : $recent->the_post();?>. This piece of code defines which category you want to grab posts from as well as how many posts you want to show.
Look down a bit further and you’ll run across the lines of code that display the thumbnail. The code for the thumbnail generation will look like…
<?php if( get_post_meta($post->ID, "thumbnail", true) ): ?>
<a href="<?php the_permalink() ?>" rel="bookmark">
<img style="float:left;margin:0px 10px 0px 0px;"
src="<?php echo get_post_meta($post->ID, "thumbnail", true); ?>"
alt="<?php the_title(); ?>" /></a>
<?php else: ?>
<a href="<?php the_permalink() ?>" rel="bookmark">
<img style="float:left;margin:0px 10px 0px 0px;"
src="<?php bloginfo('template_url'); ?>/images/thumbnail.png"
alt="<?php the_title(); ?>" /></a>
<?php endif; ?>
To remove the thumbnail post generation just delete the entire lines of code as shown above. There are 2 other places inside of the home.php file that display the thumbnails for posts. Scroll down in the file and look for the <h3>Featured Category #2</h3> and <h3>Bottom Featured Category</h3> lines and using the same technique I showed above you can easily remove thumbnails from being displayed next to the posts.
That’s all that it takes! See? I told you it was easy to do.
Feedback!
If you read this post and understood it great! Let me know in the comments below. If you are still having issues and can't get it figured out, you are more than welcome to leave a comment or send me an email using the contact form and I'll do what I can to help!