the template Blog Medium Images

Firstly I have to say I like a lot this theme, is my first website and I am not a expert :S. But I really would like to resolve my problem.

Does somebody know how I can use the template Blog Medium Images for the categories… That is possible?? I would like to assign this way to show my post in my home page. I already create a new template .php… But always appear as Blog Large Images because I think is the template default for categories. Is possible to assing “template Blog Medium Images” for categories?

<?php
/**

  • Template Name: HOME
  • Displays the Blog with Medium Image as Featured Image and excerpt.

*/
?>

<?php get_header(); ?>

&lt;?php query_posts('category_name=HOME&amp;post_status=publish,future');?&gt;

<?php
/**
* travelify_before_main_container hook
*/
do_action( ‘travelify_before_main_container’ );
?>

<div id=“container”>
<?php
/**
* travelify_main_container hook
*
* HOOKED_FUNCTION_NAME PRIORITY
*
* travelify_content 10
*/
do_action( ‘travelify_main_container’ );
?>
</div><!-- #container

<?php
/**
* travelify_after_main_container hook
*/
do_action( ‘travelify_after_main_container’ );
?>

<?php get_footer(); ?>

THANKS!! A LOOK FORWARD YOUr ANSWER!

We recently discussed this issue here:

https://colorlibsupport.com/t/how-to-use-blog-medium-images-for-category-pages/

Not really difficult to get this done. Just look what you need to add from one function to another.

As I told you I am not a expert, and I really dont know how I can merge this two function…travelify_theloop_for_archive and travelify_theloop_for_template_blog_image_medium. I really dont know how I can do that… If you can post the right code I have to change I will be really glad of you.

Thanks…

Open content-extensions.php located in theme folder - library - structure and find functions called travelify_theloop_for_archive

And replace code between current section divs with this one:

<section id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
		<article>
		<div class="medium-wrap">
			<?php do_action( 'travelify_before_post_header' ); ?>
			<header class="entry-header">
    			<h2 class="entry-title">
    				<a href="<?php the_permalink(); ?>" title="<?php the_title_attribute();?>"><?php the_title(); ?></a>
    			</h2><!-- .entry-title -->
  			</header>

  			<?php do_action( 'travelify_after_post_header' ); ?>

  			<?php do_action( 'travelify_before_post_content' ); ?>

			<?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;
	  		}
  			?>
  			
    		<?php the_excerpt(); ?>
  			

  			<?php do_action( 'travelify_after_post_content' ); ?>

  			<?php do_action( 'travelify_before_post_meta' ); ?>
		</div>
  			<div class="entry-meta-bar clearfix">	        			
    			<div class="entry-meta">
	    				<span class="author"><a href="<?php echo get_author_posts_url( get_the_author_meta( 'ID' ) ); ?>"><?php the_author(); ?></a></span>
	    				<span class="date"><a href="<?php the_permalink(); ?>" title="<?php echo esc_attr( get_the_time() ); ?>"><?php the_time( get_option( 'date_format' ) ); ?></a></span>
	    				<?php if( has_category() ) { ?>
	             		<span class="category"><?php the_category(', '); ?></span>
	             	<?php } ?> 
	    				<?php if ( comments_open() ) { ?>
	             		<span class="comments"><?php comments_popup_link( __( 'No Comments', 'travelify' ), __( '1 Comment', 'travelify' ), __( '% Comments', 'travelify' ), '', __( 'Comments Off', 'travelify' ) ); ?></span>
	             	<?php } ?>		          				
    			</div><!-- .entry-meta -->
    			<?php
    			echo '<a class="readmore" href="' . get_permalink() . '" title="'.the_title( '', '', false ).'">'.__( 'Read more', 'travelify' ).'</a>';
    			?>
    		</div>

    		<?php do_action( 'travelify_after_post_meta' ); ?>
		</article>
	</section>

Really Thanks you are a crack!! Have been really healpful!!!

Thanks Aigars
But Search result still shows only text content.
ex: https://colorlib.com/travelify/?s=This+post+has+no+body
Anyone know How to display looking like template Blog Medium Image
Thanks

@phuongdzu This is old topic and to help us keep support thread separates could you please create your own thread for your question here https://colorlibsupport.com/c/travelify-support/ instead of replying on others thread as it makes the thread messy and hard to read.

If you want to you can also add reference of this thread in your newly created thread.

We would be more than happy to help you on your new thread.