WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. dgodot
    Member
    Posted 1 year 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. ClaytonJames
    Member
    Posted 1 year 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
    Member
    Posted 1 year ago #

    Works! Thanks :)

  4. solochris14
    Member
    Posted 1 year ago #

    Where do I inset the code?

  5. Griden
    Member
    Theme Author

    Posted 1 year 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

Tags

No tags yet.