Quantcast
Channel: WordPress.org Forums » All Posts
Viewing all articles
Browse latest Browse all 95964

everlybro on "[Theme: Hatch] Changing the style of the latest post"

$
0
0

Hey guys i've been browsing all the existing answers on that topic and tried a majority of them, but none, unfortunately worked.

So im using a Hatch theme (grid like posts) and i really want to make a simple modification to it - change the style of the latest post so it would look like http://i.imgur.com/bAQMwJ5.png instead of http://imgur.com/1AbvfD8

Here is the code for the loop

<?php if ( have_posts() ) : ?>

				<?php $counter = 1; ?>

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

						<?php do_atomic( 'before_entry' ); // hatch_before_entry ?>

						<?php if ( ( $counter % 4 ) == 0 ) { ?>

							<div id="post-<?php the_ID(); ?>" class="<?php hybrid_entry_class(); ?> last">

						<?php } else { ?>

							<div id="post-<?php the_ID(); ?>" class="<?php hybrid_entry_class(); ?>">

						<?php } ?>													

								<?php do_atomic( 'open_entry' ); // hatch_open_entry ?>

								<?php if ( current_theme_supports( 'get-the-image' ) ) {

									get_the_image( array( 'size' => 'archive-thumbnail', 'image_class' => 'featured', 'width' => 220, 'height' => 150, 'default_image' => get_template_directory_uri() . '/images/archive_image_placeholder.png' ) );

								} ?>					

								<?php echo apply_atomic_shortcode( 'entry_title', '[entry-title]' ); ?>						

								<?php do_atomic( 'close_entry' ); // hatch_close_entry ?>							

							</div><!-- .hentry -->

						<?php do_atomic( 'after_entry' ); // hatch_after_entry ?>

					<?php $counter++; ?>

				<?php endwhile; ?>

Answers are greatly appreciated ! Thank you!


Viewing all articles
Browse latest Browse all 95964

Trending Articles