Eleven40 Pro Banner

Community Forums Forums Design Tips and Tricks Eleven40 Pro Banner

This topic is: not resolved

This topic contains 9 replies, has 3 voices, and was last updated by  ecoofficegals 10 months, 3 weeks ago.

Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #64771

    ecoofficegals
    Participant
    Post count: 25

    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/
    #64782

    kelmom
    Participant
    Post count: 23

    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~

    • This reply was modified 11 months ago by  kelmom.
    • This reply was modified 11 months ago by  kelmom.
    #64793

    ecoofficegals
    Participant
    Post count: 25

    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

    #64795

    kelmom
    Participant
    Post count: 23

    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~

    #64814

    ecoofficegals
    Participant
    Post count: 25

    That did it! Thank you so much!


    Jen Smith
    Owner, Eco-Office Gals

    #64830

    kelmom
    Participant
    Post count: 23

    Oh good! I’m so glad I could help! :)


    ~Kellie~

    #65211

    ecoofficegals
    Participant
    Post count: 25

    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

    #65353

    Brian Dusablon
    Participant
    Post count: 23

    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!


    #65355

    ecoofficegals
    Participant
    Post count: 25

    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

    #65485

    ecoofficegals
    Participant
    Post count: 25

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


    Jen Smith
    Owner, Eco-Office Gals

Viewing 10 posts - 1 through 10 (of 10 total)

You must be logged in to reply to this topic.