Enable Featured Images on Pages in Origin Theme? (5 posts)

  1. dgodot
    Posted 3 years ago #

    I love the Origin theme! I notice that featured images don't display at the top of Pages the way they do in Posts. Is there any way to enable them for Pages?

  2. Clayton James
    Posted 3 years ago #

    This is strictly a hack - in every sense of the word. Try it at your own will, and please make backups of files you intend to edit, before you edit. :-)

    Open page.php, and place this directly under <div class="entry-content"> located on line 34.

    <?php if ( current_theme_supports( 'get-the-image' ) ) get_the_image( array( 'meta_key' => 'Thumbnail', 'size' => 'single-thumbnail', 'link_to_post' => false, 'image_class' => 'featured', 'attachment' => false ) ); ?>

    Absolutely no guarantee, entirely off the cuff, and a knee-jerk edit. More may be required depending on the themes page features.

  3. dgodot
    Posted 3 years ago #

    Works! Thanks :)

  4. solochris14
    Posted 3 years ago #

    Where do I inset the code?

  5. Griden
    Theme Author

    Posted 3 years ago #

    Copy page.php to a child theme first. Then you can edit it. Otherwise, the next theme update will restore everything to its original state.

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic


No tags yet.