Support » Theme: Indite » Featured Image on Pages

  • Resolved Bhooshan

    (@bhooshan)


    Hi,

    Since there’s no ‘Post Format’ for Pages, I was wondering if there was a way to show a ‘Featured Image’ on Pages?

    Bhooshan

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Theme Author Alexander Agnarson

    (@alxmedia)

    Hi,

    In page.php, try adding:

    
    <?php if ( has_post_thumbnail() ) : ?>
    <div class="post-format">
    <div class="image-container">
    <?php the_post_thumbnail('indite-large'); ?>
    </div>
    </div>
    <?php endif; ?>
    

    Where you want the featured image to show up.

    Hey Alexander, glad to see your reply! Thanks, and I really appreciate it.

    Based on your theme the ‘Featured Image’ in Posts requires a ‘Gallery’ post attribute, and a similar function (to choose the post attribute) is missing within the Pages function. Any suggestions to work around this?

    I think because of this reason, I am currently not able to see the ‘Featured Image’ on the Page.

    Edit: My apologies Alexander, I’m able to see the ‘featured image’ now.

    • This reply was modified 1 month, 2 weeks ago by Bhooshan. Reason: Added an update to my previous entry
Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.