• 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

Wellness Pro and 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 › Design Tips and Tricks › Wellness Pro and Featured Image

This topic is: resolved

Tagged: featured image, wellness pro

  • This topic has 3 replies, 2 voices, and was last updated 7 years, 4 months ago by mat3d.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • January 8, 2018 at 3:37 am #215192
    mat3d
    Member

    Hi All,

    I noticed that the wellness pro theme grabs the first image in a post or page automatically and displays it as featured image, but that often results in having the same image appearing twice on the article. If I remove the image inside the article, the featured image remains unless I delete that image from the website entirely.

    I would like to use featured images manually for post and pages without the theme grabbing one automatically (like I do on other StudioPress themes).

    How can I change this behaviour? Is is possible to modify the child theme without editing the genesis framework? I can see the featured image code in functions.php but I am not sure what to change.

    Many thanks!

    Mat

    January 9, 2018 at 5:11 am #215223
    mat3d
    Member

    Note: I did a search in the forum and found similar posts to mine but I am seeking additional information about what changes I can make to the code and if it is possible to do it in the child theme rather than the Genesis Framework itself.
    Thanks!

    January 12, 2018 at 5:44 pm #215348
    ArtsNet
    Participant

    Hi,

    I had the same problem and found this solution which appears to work. Add this code to your functions.php file. You can still set a featured image, but if none is set it won't assign one.

    add_filter( 'genesis_get_image_default_args', 'gd_show_only_assigned_featured_image' );
    function gd_show_only_assigned_featured_image( $args ){
    $args['fallback'] = 'no-attachment'; // By Default it is 'first-attached'
    return $args;
    }

    January 15, 2018 at 5:17 am #215408
    mat3d
    Member

    Thank you very much ArtsNet, it works just fine!
    Really appreciate your help.
    Best
    Mat

  • Author
    Posts
Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Wellness Pro and Featured Image’ is closed to new replies.

CTA

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

Create a site with WP EngineShop for Themes

Footer

StudioPress

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