• 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

Workstation Pro – Contact page showing featured image?

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 › General Discussion › Workstation Pro – Contact page showing featured image?

This topic is: not resolved

Tagged: featured, workstation

  • This topic has 2 replies, 1 voice, and was last updated 9 years, 8 months ago by MissKitty.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • June 13, 2016 at 12:44 pm #187487
    MissKitty
    Participant

    I'm using Workstation Pro. On the Contact page, I inserted a photo, set it to medium size, and set it to display flush left of the text.
    When I published the page, the image appears fine, BUT a full size version of the image displays full size in the Entry Header area as a featured image... even though I do not have a featured image set.

    Is the Contact page in Workstation Pro configured to do this for some reason? It looks as if it's using the "first image" as the featured image - HOWEVER, it's a page, not a post, and none of the other pages seem to do this.

    http://prntscr.com/bfy09a
    http://prntscr.com/bfy03s

    I can hide the full size featured image on this page w/ CSS but would prefer to understand how to do it properly via functions.php.

    Thanks in advance for any guidance.

    http://dougwool3.dev.onpressidium.com/contact/
    June 13, 2016 at 1:58 pm #187489
    MissKitty
    Participant

    Oops.... just realized, it is happening on other pages, not just the contact page.
    I'm guessing I could comment out this code, although I'm not sure that's what I want to do....

    //* Add featured image above the entry content
    add_action( 'genesis_entry_header', 'workstation_featured_photo', 5 );
    function workstation_featured_photo() {
    
    	if ( is_attachment() || ! genesis_get_option( 'content_archive_thumbnail' ) )
    		return;
    
    	if ( is_singular() && $image = genesis_get_image( array( 'format' => 'url', 'size' => genesis_get_option( 'image_size' ) ) ) ) {
    		printf( '<div class="featured-image"><img src="%s" alt="%s" class="entry-image"/></div>', $image, the_title_attribute( 'echo=0' ) );
    	}
    
    }
    
    June 13, 2016 at 5:34 pm #187493
    MissKitty
    Participant

    Well.... for anyone seeking a solution, here's mine, fwiw:

    I commented out the native code like so:

    //* Add featured image above the entry content
    //add_action( 'genesis_entry_header', 'workstation_featured_photo', 5 );
    //function workstation_featured_photo() {
    
    //	if ( is_attachment() || ! genesis_get_option( 'content_archive_thumbnail' ) )
    //		return;
    
    //	if ( is_singular() && $image = genesis_get_image( array( 'format' => 'url', 'size' => genesis_get_option( 'image_size' ) ) ) ) {
    //		printf( '<div class="featured-image"><img src="%s" alt="%s" class="entry-image"/></div>', $image, the_title_attribute( 'echo=0' ) );
    //	}
    
    //}
    

    and added:

    add_action( 'genesis_before_entry', 'featured_post_image', 8 );
    function featured_post_image() {
      if ( ! is_singular( 'post' ) )  return;
    	the_post_thumbnail('post-image');
    }
  • Author
    Posts
Viewing 3 posts - 1 through 3 (of 3 total)
  • The forum ‘General Discussion’ 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

© 2026 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