• 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

Adding a banner below the header

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 › Adding a banner below the header

This topic is: not resolved

Tagged: adsense, advertising, banner

  • This topic has 4 replies, 2 voices, and was last updated 12 years, 9 months ago by mariafernandez.
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • February 28, 2013 at 11:02 am #23307
    mariafernandez
    Member

    Does anyone know what the simplest way is to add a banner below the header and above the post title on every post?

    Thanks.Maria

    February 28, 2013 at 1:14 pm #23329
    Brad Dalton
    Participant

    Insert you banner into a new post draft and centre it

    Grab the HTML for the banner from your text editor

    Install the Genesis Simple Hooks plugin and add your HTML for the banner to this code:

    <?php if (is_single() ) { ?>
    <p>HTML-Code-Goes-Here</p>
    <?php } ?>
    

    Paste the code into the Hook location using the genesis_before_content Hook field in the plugin settings.

    You can put you adsense in there as well.


    Tutorials for StudioPress Themes.

    February 28, 2013 at 3:44 pm #23364
    mariafernandez
    Member

    I actually need it to go above the post title and the sidebar (the banner is wider than the post area). Would that be the genesis_before_content_sidebar_wrap hook then?

    February 28, 2013 at 4:28 pm #23377
    Brad Dalton
    Participant

    Yes.


    Tutorials for StudioPress Themes.

    March 1, 2013 at 4:54 am #23469
    mariafernandez
    Member

    Thanks, Brad. The banner is now in place.

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

© 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