• 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

ictiempo

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
  • Profile
  • Topics Started
  • Replies Created
  • Engagements
  • Favorites

Forum Replies Created

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • May 21, 2017 at 6:57 am in reply to: Genesis Sample child theme blog featured image with ads below. #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.

    May 19, 2017 at 6:07 pm in reply to: Genesis Sample child theme blog featured image with ads below. #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 19, 2017 at 7:24 am in reply to: Genesis Sample child theme blog featured image with ads below. #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:00 am in reply to: Genesis Sample child theme blog featured image with ads below. #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 6:46 am in reply to: Genesis Sample child theme blog featured image with ads below. #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?

  • Author
    Posts
Viewing 5 posts - 1 through 5 (of 5 total)

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