WordPress.org

Ready to get started?Download WordPress

Forums

[Theme: Hatch] Changing the style of the latest post (4 posts)

  1. everlybro
    Member
    Posted 6 months ago #

    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!

  2. everlybro
    Member
    Posted 6 months ago #

    Anyone?

  3. everlybro
    Member
    Posted 6 months ago #

    Hello ? is there anybody else on these forums?

  4. everlybro
    Member
    Posted 6 months ago #

    I there anybody going to listen to my story
    all about the girl that came to stay ?

Reply

You must log in to post.

About this Topic