• 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

Eleven40 Pro Banner

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 › Eleven40 Pro Banner

This topic is: not resolved

Tagged: css, Eleven40, functions, php

  • This topic has 9 replies, 3 voices, and was last updated 11 years, 7 months ago by ecoofficegals.
Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • September 30, 2013 at 7:44 am #64771
    ecoofficegals
    Member

    I asked a question last week which was never looked at and I still need assistance. I received some assistance but I messed up explaining part of what I needed so it should just be an edit.
    On http://healingrescuedogs.com/ I needed the site description replaced with the dog silhouette banner which is in there now, but I asked help with this code for the home page only. I forgot it was originally on all pages.
    I tried to replace "is front page" with " is pages" but this put the banner on all pages but the home page. I need it on all pages including the home page.

    The code I am using is:

    function after_header_banner() {
    if( is_front_page() )
    echo '<div class="home-banner"></div>';
    };

    what can I change for it to be on all pages plus the home page.


    Jen Smith
    Owner, Eco-Office Gals

    http://healingrescuedogs.com/
    September 30, 2013 at 8:57 am #64782
    kelmom
    Member

    Hi Jen! The site is super cute! ๐Ÿ™‚

    How about using is_page instead?

    Like this:

    is_page($page);

    This should get it to show up on all pages.

    I hope this helps!

    ~Kellie


    ~Kellie~

    September 30, 2013 at 10:45 am #64793
    ecoofficegals
    Member

    Thanks for the feedback on the design Kellie!
    I tried yours and it does all pages but home see http://healingrescuedogs.com/
    same problem I had, any idea on how to get it to include the home page?


    Jen Smith
    Owner, Eco-Office Gals

    September 30, 2013 at 10:58 am #64795
    kelmom
    Member

    Hmmm.... what about if you did something like this:

    if( is_page($page) || is_front_page() )
    echo ‘<div class=”home-banner”>

    Would that work? It's kind of like saying if page AND front page....


    ~Kellie~

    September 30, 2013 at 1:00 pm #64814
    ecoofficegals
    Member

    That did it! Thank you so much!


    Jen Smith
    Owner, Eco-Office Gals

    September 30, 2013 at 2:33 pm #64830
    kelmom
    Member

    Oh good! I'm so glad I could help! ๐Ÿ™‚


    ~Kellie~

    October 3, 2013 at 10:02 am #65211
    ecoofficegals
    Member

    Hey Kellie or anyone else.
    We just realized that the banner still doesn't show on single posts, like http://healingrescuedogs.com/2013/09/30/world-whippets/ any thoughts on a final tweak to have it show everywhere? Thank you!


    Jen Smith
    Owner, Eco-Office Gals

    October 4, 2013 at 9:32 am #65353
    Brian Dusablon
    Participant

    Jen,

    What did your full code solution for this end up being? I'm trying to do the same thing on Eleven40 Pro - have just a banner image on the home page only. Where did you put the code? In home.php or the functions.php file?

    Thanks!


    Blog ยท Duce Enterprises ยท Twitter

    October 4, 2013 at 9:36 am #65355
    ecoofficegals
    Member

    Hey Brian,
    I'm still hoping for the final fix to include it in the single post once I have it all I can do a full copy, but no I haven't gotten an answer yet.


    Jen Smith
    Owner, Eco-Office Gals

    October 5, 2013 at 1:33 pm #65485
    ecoofficegals
    Member

    Does anyone know a final fix to get this on single posts? Thanks!


    Jen Smith
    Owner, Eco-Office Gals

  • 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

© 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