• 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

different banners on different pages

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 › different banners on different pages

This topic is: not resolved

Tagged: Agency, banner, header

  • This topic has 29 replies, 3 voices, and was last updated 12 years, 4 months ago by Brad Dalton.
Viewing 10 posts - 21 through 30 (of 30 total)
← 1 2
  • Author
    Posts
  • January 24, 2013 at 7:15 pm #14491
    SoZo
    Member

    This is working for me

    add_action(get_header, remove_header);
    function remove_header() {
    if( ! is_home() ) {
    remove_action( 'genesis_header', 'genesis_header_markup_open', 5 );
    remove_action( 'genesis_header', 'genesis_do_header' );
    remove_action( 'genesis_header', 'genesis_header_markup_close', 15 );
    }}

    John “Nicolas Flamel” Wright | SoZo’s design| John Wright Photography

    January 24, 2013 at 7:24 pm #14495
    Brad Dalton
    Participant

    You'll need to remove the large banner header from Appearance > Header if you add the code i posted because its added using the HTML in the code.


    Tutorials for StudioPress Themes.

    January 24, 2013 at 7:24 pm #14496
    fiddles5
    Member

    perhaps it is a difference in themes? It didn't work for me. It hid the header AND the navigation on the home page and gave all of my text a weird shadow effect, and messed about with the placement of the footer widgets!  Weird.

    But it DID work on all the other pages EXCEPT the home page.

     

    help?

    January 24, 2013 at 7:25 pm #14498
    fiddles5
    Member

    that previous answer was for John.  Brad -- I'll try doing that and see what happens. That's probably it!

    thanks!

    January 24, 2013 at 7:31 pm #14500
    fiddles5
    Member

    Brad -- I did that, but something is backwards here.  Now the shorter banner is appearing on the home page, where I DON't want it. And NO banner is appearing on the other pages.

    So what I want is for the larger header to appear on the home page with the header widget content on the right. And the smaller banner to appear on ALL of the other pages of the site, without the header widget.

     

    January 24, 2013 at 7:36 pm #14503
    fiddles5
    Member

    Brad - explain to me what this does:
    if( ! is_home() ) {

    If it's the home page, then do the following?  Shouldn't it be if it's NOT the home page, then do the following?  Is that what the exclamation point means?   if NOT is_home  then do this... ?

    pardon my ignorance of php!

    January 24, 2013 at 7:44 pm #14504
    Brad Dalton
    Participant

    !is_home() If its Not the home page.
    is_home() If its the home page

    http://codex.wordpress.org/Conditional_Tags

    You're also going to have a problem with this code:

    /** Add support for custom header */
    add_theme_support( 'genesis-custom-header', array( 'width' => 960, 'height' => 115 ) );
    

    The height is different for the homepage and other pages so you'll need a conditional tag here also as you header image banners are different heights.

    The code i supplied works for me. The only problem is the gap caused by the banner height difference


    Tutorials for StudioPress Themes.

    January 24, 2013 at 7:54 pm #14508
    Brad Dalton
    Participant

    Are you using the genesis_header Hook and genesis_before_header Hook?


    Tutorials for StudioPress Themes.

    January 24, 2013 at 8:13 pm #14512
    fiddles5
    Member
    This reply has been marked as private.
    January 24, 2013 at 9:04 pm #14526
    Brad Dalton
    Participant

    Me too. Sure. Happy to solve this tomorrow also.


    Tutorials for StudioPress Themes.

  • Author
    Posts
Viewing 10 posts - 21 through 30 (of 30 total)
← 1 2
  • 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

© 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