• 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 Ad below the Nav Bar

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 › Adding a Banner Ad below the Nav Bar

This topic is: resolved

Tagged: banner below nav, landscape child theme, WP Cycle

  • This topic has 9 replies, 4 voices, and was last updated 12 years, 12 months ago by Rita.
Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • January 5, 2013 at 11:23 am #9752
    Rita
    Member

    I'm using Landscape theme.

    I need to add a banner ad to the home page below the primary nav BUT above the WP-Cycle.

    Can someone advise on how to do this? thanks.

    January 5, 2013 at 11:29 am #9754
    Chris Cree
    Participant

    Just edit your home.php file to add your banner code. Open your home.php file in a text editor (NOT Microsoft Word!) and look for this code:

    <div id="homepage">
    	<?php if( function_exists('wp_cycle') ) : ?>
    		<?php wp_cycle(); ?>
    	<?php endif; ?>
    </div>

    Change it to this

    <div id="homepage">
    	<div class="home-banner">
    		[BANNER HTML CODE GOES HERE]
    	</div>
    	<?php if( function_exists('wp_cycle') ) : ?>
    		<?php wp_cycle(); ?>
    	<?php endif; ?>
    </div>

    Replace the [BANNER HTML CODE GOES HERE] with the HTML code for your banner.

    Then add any css styling you might need to your style.css file to make the .home-banner area look the way you want it to.

    January 8, 2013 at 6:05 am #10328
    Rita
    Member

    This worked!

    Is it possible to place the banner above (outside) of the wp-cycle frame?

    Thank you for your help!

    January 10, 2013 at 3:10 pm #11041
    Rita
    Member

    Trying just to see if anyone knows if it's possible to place the banner above (outside) of the wp-cycle frame?

    January 10, 2013 at 8:59 pm #11120
    John Levandowski
    Member

    You could try adding the following to your theme's function.php

    add_action( 'genesis_before_content_sidebar_wrap', 'child_before_content_sidebar_wrap' );
    function child_before_content_sidebar_wrap() {
    ?&gt;INSERT AD CODE HERE&lt;?php
    }

    http://wpselect.com/

    January 10, 2013 at 9:21 pm #11128
    Rita
    Member

    So remove the home.php code I added then try the function.php code?

    January 11, 2013 at 8:16 am #11202
    John Levandowski
    Member

    Yes, that should work.


    http://wpselect.com/

    January 11, 2013 at 10:58 am #11257
    cavemedia
    Member

    Hi John,

    I tried your solution and it places the banner inside the inner tag on all pages except the home page. The code needs to be placed after the <div id=nav> and before <div id=inner>

    Suggestions anyone?

    January 13, 2013 at 12:31 am #11546
    Rita
    Member

    Just following up on this to see if anyone else has a thought? Thanks!

    January 24, 2013 at 9:18 pm #14529
    Rita
    Member

    My client decided to just leave the banner in the wp-cycle area since it's displaying properly.

  • Author
    Posts
Viewing 10 posts - 1 through 10 (of 10 total)
  • The topic ‘Adding a Banner Ad below the Nav Bar’ 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

© 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