How to put featured image on index page below the post title
-
Hi- I really love this theme. It’s simple, elegant, and extremely powerful in terms of the amount of customization it allows.
Just one thing I’d like to do: put the featured post below the title on the index page.
Thanks
-
Hello rachel613,
Hope you are having good time!May i have your site url please?
Hi Vipin!
I am having fun :). I actually switched from a paid theme – Thesis, which I’ve had for years. Thanks so much for taking the time to create the theme and make it available for free. Though I understand there’s a paid version? which I’ll have to take a look at as well.
Here’s my site URL: https://teachingthefuture.net/
But I have only one featured image right now because when I switched themes it looks like they all have to be re-enabled. I’ve edited only one post right now until I see what needs to be done to put the pix under the title.
Hello rachel613
Thanks for site url.
I have visited your site which is looking pretty good. Now, may i ask one thing?? what do you(with all do respect) mean by featured image actually??Waiting for your return?
Thanks! I had some help of course:).
In terms of your questions, it could be I’m not using the right terminology.
I mean the picture that goes along with the post – but on the home page.In other words, when you go to the home page, and you have post excerpts enabled, then you see a post excerpt, with the image that goes along with it.
However on my home page, you see either: the title -> no image–> post excerpt (when featured image isn’t enabled), and when featured image is enabled you see a picture–>>title–>post excerpt.
Hope that makes sense ??
Hello rachel613,
Thanks for patience!May i ask one more questions please??
Have you added featured image with each of your posts??Please check this and if did add then add the featured image, save all the changes and have a look at your blog page.I hope it will resolve your issue.
Feel free to ask further queries.
Cheers!I am having this same problem. The theme seems to default an addition of a featured image above the post title. I am extremely new to this and worried about messing with/moving code that I am not 100% certain about.
Currently the post layout from top to bottom is:
feature image
date
title
author/page/tags/comments
contentI would like it to be:
title
feature image
content
author/page/tags/commentFrom other support threads it seems this is done by making a change to the loop but I am not sure where to make that change. Any help would be greatly appreciated. I will post my loop file below.
A huge thank you to anyone willing to offer help here!!
(Appearance – Editor- Loop.php)
<?php
/**
* Template for generic post display.
* @package themify
* @since 1.0.0
*/// Enable more link
if ( ! is_single() ) {
global $more;
$more = 0;
}
?><?php themify_base_post_before(); // hook ?>
<article id=”post-<?php the_id(); ?>” <?php post_class( ‘clearfix’ ); ?>>
<?php themify_base_post_start(); // hook ?>
<?php themify_base_before_post_image(); // Hook ?>
<?php if ( has_post_thumbnail() ) : ?>
<figure class=”post-image”>
” title=”<?php the_title_attribute(); ?>”>
<?php the_post_thumbnail( themify_base_get( is_single() ? ‘setting-single_layout_image_size’ : ‘setting-index_layout_image_size’, ‘large’ ) ); ?>
</figure>
<?php endif; // has post thumbnail ?><?php themify_base_after_post_image(); // Hook ?>
<div class=”post-content”>
<time datetime=”<?php the_time(‘o-m-d’) ?>” class=”post-date”><?php echo get_the_date( apply_filters( ‘themify_loop_date’, ” ) ) ?></time>
<?php themify_base_before_post_title(); // Hook ?>
<h1 class=”post-title”>
” title=”<?php the_title_attribute(); ?>”><?php the_title(); ?>
</h1>
<?php themify_base_after_post_title(); // Hook ?><?php if ( ! is_attachment() ) : ?>
<p class=”post-meta”>
<span class=”post-author”><?php the_author_posts_link(); ?></span><?php the_terms( get_the_id(), ‘category’, ‘ <span class=”post-category”>’, ‘, ‘, ‘</span>’ ); ?>
<?php the_tags( ‘ <span class=”post-tag”>’, ‘, ‘, ‘</span>’ ); ?>
<?php if ( comments_open() ) : ?>
<span class=”post-comment”>
<?php comments_popup_link( __( ‘0 Comments’, ‘themify’ ), __( ‘1 Comment’, ‘themify’ ), __( ‘% Comments’, ‘themify’ ) ); ?>
</span>
<?php endif; //post comment ?>
</p>
<!– /.post-meta –>
<?php endif; ?><?php if ( is_singular() ) : ?>
<?php the_content(); ?>
<?php else: ?>
<?php $entry_content_display = themify_base_get( ‘setting-default_archive_content’, ‘full’ ); ?>
<?php if ( ‘full’ == $entry_content_display ) : ?>
<?php the_content(); ?>
<?php elseif ( ‘excerpt’ == $entry_content_display ) : ?>
<?php the_excerpt(); ?>
<?php endif; ?>
<?php endif; ?><?php edit_post_link(__(‘Edit’, ‘themify’), ‘<span class=”edit-button”>[‘, ‘]</span>’); ?>
</div>
<!– /.post-content –><?php themify_base_post_end(); // hook ?>
</article>
<!– /.post –><?php themify_base_post_after(); // hook ?>
- The topic ‘How to put featured image on index page below the post title’ is closed to new replies.