• 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.

    Thread Starter Bhooshan

    (@bhooshan)

    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 4 years, 11 months ago by Bhooshan. Reason: Added an update to my previous entry
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Featured Image on Pages’ is closed to new replies.