Support » Theme: Instorm » Show featured photo in the post

  • Hello!

    I love much this theme, but i want show the principal / featured picture in the post page. To get this result i added this code in single.php file.
    <?php the_post_thumbnail( 'full' ); ?>

    This line added after </header> tag and before <div class=“Entry-media”> tag.

    To get best result i added this style css:

    .entry-media + .wp-post-image {
        width: 100%;
        margin-bottom: 35px;
        margin-top: -35px;
    }
    • This topic was modified 1 month, 2 weeks ago by jhorje18.
    • This topic was modified 1 month, 2 weeks ago by jhorje18. Reason: Add style css
Viewing 5 replies - 1 through 5 (of 5 total)
  • Theme Author Alexander Agnarson

    (@alxmedia)

    Hi! Glad to hear you like it 🙂

    To make the featured image appear on single posts, select Post Format > Image.

    Thanks for sharing your solution!

    Hello,
    I want to ask about this featured image in the posts. Is it possible to have it without @jhorje18 fix or not because I have switched default Post Format to image but nothing changed.

    Theme Author Alexander Agnarson

    (@alxmedia)

    So, your featured image does not show up on single posts, at the top, when using Image Post Format?

    Do you…

    1) Set a featured image
    2) Set the post format to Image
    3) Save

    It should be that simple to make it show up.

    Mickey

    (@sachin0414)

    Hey Alex, Do we have to update the Post Format of every post to Image manually, cause I have around 3000 posts and I have already tried setting the default post format to image, but that doesn’t updates published post.

    Please help!!

    Theme Author Alexander Agnarson

    (@alxmedia)

    Hi Mickey,

    You would need to edit single.php with a child theme and change lines:

    
    <div class="entry-media">
    <?php if( get_post_format() ) { get_template_part('inc/post-formats'); } ?>
    </div>
    

    To:

    
    <div class="entry-media">
    <div class="image-container">
    <?php if ( has_post_thumbnail() ) { the_post_thumbnail('instorm-large'); } ?>
    </div>
    </div>
    

    Please create a new thread if you have more questions, I almost missed this one.

Viewing 5 replies - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.