badget

Biggest Sale! Special Offer!

Get 30% discount on all of our single themes with this coupon code: #30%SALE

Hurry up! *Limited time offer*

Reply To: attitude_theloop_for_archive –> attitude_theloop_for_template_blog_image_medium

#12460
david.danaan
Participant

Hello Sunil,

I made the above change to the content-extensions.php template, and the archive images are now the featured-medium size. However, they do not float left as they do in the blog image medium page template, they are still centered with the excerpt below. This segment of code is (after editing) identical in the functions for archive and blog image medium templates:

<?php
			if( has_post_thumbnail() ) {
				$image = '';        			
	     		$title_attribute = apply_filters( 'the_title', get_the_title( $post->ID ) );
	     		$image .= '<figure class="post-featured-image">';
	  			$image .= '<a href="' . get_permalink() . '" title="'.the_title( '', '', false ).'">';
	  			$image .= get_the_post_thumbnail( $post->ID, 'featured-medium', array( 'title' => esc_attr( $title_attribute ), 'alt' => esc_attr( $title_attribute ) ) ).'</a>';
	  			$image .= '</figure>';

	  			echo $image;
	  		}
  			?>

so where can I find the code that controls this attribute of the image?

Many thanks.