Join our new community forum for support & discussion

Join Now

Home Support Themes ListingHive Want to place Featured Image BELOW the title

Want to place Featured Image BELOW the title

  • Author
    Posts
  • pratikc2905

    I’m new to WordPress and happy to use the ListingHive theme. I have been trying to fix one thing which is I want featured image on pages for posts to show on the right hand side of the title. How do I code this? Can someone guide. Thanks.

    pratikc2905

    Edit: Featured Image below the title, not on right hand side.

    yevhen developer

    Thanks! If you mean the blog posts, it is possible but requires the layout customizations via the child theme.

    pratikc2905

    Yes I meant for blog posts. I am currently using the child theme of HivePress.
    From what I gathered, since I am displaying category links to list all posts belong to the category, I should be making changes to: post-archive.php file

    Please let me know if that is correct and if so can I get some code for altering this?
    The current post-archive.php file is as follows:

    <article <?php post_class( 'post--archive' ); ?>>
    	<header class="post__header <?php if ( has_post_thumbnail() ) : ?>post__header--cover<?php endif; ?>">
    		<?php if ( has_post_thumbnail() ) : ?>
    			<div class="post__image">
    				<a href="<?php the_permalink(); ?>"><?php the_post_thumbnail( 'ht_landscape_large' ); ?></a>
    			</div>
    			<?php
    		endif;
    
    		if ( has_category() ) :
    			?>
    			<div class="post__categories">
    				<?php the_category( ' ' ); ?>
    			</div>
    			<?php
    		endif;
    
    		if ( get_the_title() ) :
    			?>
    			<h2 class="post__title"><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2>
    		<?php endif; ?>
    	</header>
    	<div class="post__content">
    		<?php
    		if ( ! get_post_format() && get_the_content() ) :
    			?>
    			<div class="post__text"><?php the_excerpt(); ?></div>
    			<?php
    		endif;
    
    		get_template_part( 'templates/post/post-details' );
    		?>
    	</div>
    </article>
    pratikc2905

    https://imgur.com/a/R74Glrf

    https://imgur.com/a/k6x3ebx

    Please find attached SS of how it appears for me.

    Currently kept Featured Images off because it appears as a large image, I want it to appear as a 150x150px image, and the title is in front of the FI itself, I want title above the FI.

    yevhen developer

    Sorry, unfortunately we can not help with customizing blog layouts and checking custom code, this is beyond our support scope. Please try overriding template files via a child theme and adjust HTML, or add custom HTML – you can check how sidebar is set in the index.php file where the blog archive layout is set.

Viewing 6 posts - 1 through 6 (of 6 total)

New Reply

This forum has been archived and is no longer accepting new posts or replies. Please join our new community forum for support & discussion.