• Skip to main content
  • Skip to forum navigation

StudioPress

  • Shop for Themes
  • My StudioPress

Forum navigation

  • Home
  • General Genesis Discussions
  • StudioPress Themes
  • Genesis Blocks
    • Genesis Blocks
    • Genesis Custom Blocks
  • Retired Themes
  • FAQs
  • Forum Rules
  • Internationalization and Translations
  • Forum Bugs and Suggestions
  • Forum Log In

Are You Using The WordPress Block Editor?

Genesis now offers plugins that help you build better sites faster with the WordPress block editor (Gutenberg). Try the feature-rich free versions of each plugin for yourself!

Genesis Blocks Genesis Custom Blocks

Understanding how featured image works

Welcome!

These forums are for general discussion on WordPress and Genesis. Official support for StudioPress themes is offered exclusively at My StudioPress. Responses in this forum are not guaranteed. Please note that this forum will require a new username, separate from the one used for My.StudioPress.

Log In
Register Lost Password

Community Forums › Forums › Archived Forums › Design Tips and Tricks › Understanding how featured image works

This topic is: not resolved
  • This topic has 3 replies, 4 voices, and was last updated 9 years, 8 months ago by charriott4.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • January 26, 2013 at 3:18 pm #15086
    OctaneMatt
    Member

    I was using the featured image feature of WordPress with my old theme and now I'm trying to understand how to migrate everything to the Genesis Magazine theme. It seems the philosophy of Genesis is different in that the featured image is not shown when viewing the post. This made my old posts look very bare.
    So I then found this snippet which put the featured image in teh post:
    <code>
    /** Add Featured Image to Posts - the Webonanza style */
    add_action( 'genesis_after_post_title', 'child_do_single_post_image' );
    function child_do_single_post_image() {
    if( is_single() )
    genesis_image( array( 'size' => 'single-post', 'attr' => array( 'class' => 'center' ) ) );
    }
    </code>
    The problem I found is that the featured images were not served from the CDN nor processed by Photon so there were some very large images being scaled in HTML.
    How should I proceed? I would like the front page (and categories) to look like a typical blog with text and photos, and when viewing a single post that it doesn't appear to be missing photos.
    My site: blog.octanenation.com
    A general blog style I'm trying to achieve: Autoblog.com or Hooniverse.com

    Thanks for your help!

    January 29, 2013 at 2:30 pm #16095
    SoZo
    Member

    If you're CDN isn't serving the images you should contact them. But your code should be pulling in the the "single-post" image size. Did you run the regenerate thumbnails plugin after adding your new image size?


    John “Nicolas Flamel” Wright | SoZo’s design| John Wright Photography

    January 30, 2013 at 3:24 pm #16514
    CenterPixel
    Member

    I am trying to do the same thing with the Midnight child theme.  The above code had no effect.  Any ideas how I would do this?

    April 8, 2014 at 11:00 am #99075
    charriott4
    Member

    Has anyone figured this out yet? I would like to know how to do this as well.


    Web Designs By Chrissy | Twitter @designbychrissy

    Follow Me On Facebook

  • Author
    Posts
Viewing 4 posts - 1 through 4 (of 4 total)
  • The forum ‘Design Tips and Tricks’ is closed to new topics and replies.

CTA

Ready to get started? Create a site or shop for themes.

Create a site with WP EngineShop for Themes

Footer

StudioPress

© 2023 WPEngine, Inc.

Products
  • Create a Site with WP Engine
  • Shop for Themes
  • Theme Features
  • Get Started
  • Showcase
Company
  • Brand Assets
  • Terms of Service
  • Accptable Usse Policy
  • Privacy Policy
  • Refund Policy
  • Contact Us
Community
  • Find Developers
  • Forums
  • Facebook Group
  • #GenesisWP
  • Showcase
Resources
  • StudioPress Blog
  • Help & Documentation
  • FAQs
  • Code Snippets
  • Affiliates
Connect
  • StudioPress Live
  • StudioPress FM
  • Facebook
  • Twitter
  • Dribbble