WordPress.org

Support

Support » Themes and Templates » [Theme: Hatch] Changing the style of the latest post

[Theme: Hatch] Changing the style of the latest post

  • 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 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Theme: Hatch] Changing the style of the latest post’ is closed to new replies.
Skip to toolbar