• 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

Genesis Sample child theme blog featured image with ads below.

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 › Genesis Sample child theme blog featured image with ads below.

This topic is: not resolved

Tagged: featured image, post_modified_date, single post

  • This topic has 9 replies, 2 voices, and was last updated 9 years ago by ictiempo.
Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • May 18, 2017 at 8:53 pm #206667
    ictiempo
    Member

    Ads below featured image and and updated date

    Hello, I just purchase the Genesis Framework with sample child theme.My previous theme was customized to display Featured image on top, just below the post info and after the featured image there is a 728X90 ad.

    The post info was also replaced. Instead of date posted it was changed to post updated date. How can I bring those customization on Genesis child them? Your reply will be highly appreciated.

    https://www.techchore.com
    May 19, 2017 at 12:51 am #206670
    Brad Dalton
    Participant

    1. You can add the featured image to single posts in genesis using code. You'll find the code in several themes functions files.

    2. You can search for a tutorial which shows you how to modify the post date to updated date. This requires the changing of the post info shortcode.


    Tutorials for StudioPress Themes.

    May 19, 2017 at 6:46 am #206687
    ictiempo
    Member

    Thank you for your Reply Braddalto. I found it useful and I will be trying it. However, how can I add my 728x90 ads just below the featured image on every post?

    May 19, 2017 at 6:50 am #206689
    Brad Dalton
    Participant

    Brad Dalton

    Add your code just before the final closing curly bracket

    echo 'Your Advert';
    }
    

    Tutorials for StudioPress Themes.

    May 19, 2017 at 7:00 am #206691
    ictiempo
    Member

    Thank you for prompt reply, I am sorry but I only knew few HTML and CSS and completely helpless on Php. What php files I will be opening, Single.php? You wrote "echo 'Your Advert'; }. As what I understood I will be replacing the "Your advert" with my ad code?

    May 19, 2017 at 7:19 am #206694
    Brad Dalton
    Participant

    Use the same code which adds the featured image which i linked to above.


    Tutorials for StudioPress Themes.

    May 19, 2017 at 7:24 am #206695
    ictiempo
    Member

    Hello,

    So, I will be opening Function.php paste the code `add_action( 'genesis_entry_header', 'single_post_featured_image', 15 );

    function single_post_featured_image() {

    if ( ! is_singular( 'post' ) )
    return;

    $img = genesis_get_image( array( 'format' => 'html', 'size' => genesis_get_option( 'image_size' ), 'attr' => array( 'class' => 'post-image' ) ) );
    printf( '<a href="%s" title="%s">%s</a>', get_permalink(), the_title_attribute( 'echo=0' ), $img );

    }` Then after the ad code?

    May 19, 2017 at 7:38 am #206696
    Brad Dalton
    Participant

    See here


    Tutorials for StudioPress Themes.

    May 19, 2017 at 6:07 pm #206716
    ictiempo
    Member

    Hello, I would appreciate if you will guide me, what php to open and where exactly the ad code to be place. As what I understood that function.php is the only php file to open. Then, I will input the featured image code. What confuses me is this:

    Add your code just before the final closing curly bracket

    echo 'Your Advert';
    }

    You said that before the curly bracket but before the semicolon there is a 'your advert'? What curly bracket that you mean? That's why in this thread https://www.studiopress.community/topic/genesis-sample-child-theme-blog-featured-image-with-ads-below/#post-206695 I asked if the curly that you mean is after the featured image code? If not, how do i suppose to input my adcode. I hope you will answer me on layman's perspective.

    May 21, 2017 at 6:57 am #206783
    ictiempo
    Member

    Hello Braddalto,

    Thanks for providing the help. I was able to configure on how to add ads below featured image by using advance ads plug-in.

    May I ask,by changing the post date to update date, will search engine read and display that on search results? Because, after changing to Genesis theme yesterday google search read the post date instead of date the post was modified.

    Thanks in advance.

  • Author
    Posts
Viewing 10 posts - 1 through 10 (of 10 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

© 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