Community Forums › Forums › Archived Forums › Design Tips and Tricks › Eleven40 Pro Banner
- This topic has 9 replies, 3 voices, and was last updated 12 years, 6 months ago by
ecoofficegals.
-
AuthorPosts
-
September 30, 2013 at 7:44 am #64771
ecoofficegals
MemberI 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.
http://healingrescuedogs.com/Jen Smith
Owner, Eco-Office GalsSeptember 30, 2013 at 8:57 am #64782kelmom
MemberHi 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 #64793ecoofficegals
MemberThanks 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 GalsSeptember 30, 2013 at 10:58 am #64795kelmom
MemberHmmm.... 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 #64814ecoofficegals
MemberThat did it! Thank you so much!
Jen Smith
Owner, Eco-Office GalsSeptember 30, 2013 at 2:33 pm #64830kelmom
MemberOh good! I'm so glad I could help! ๐
~Kellie~
October 3, 2013 at 10:02 am #65211ecoofficegals
MemberHey 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 GalsOctober 4, 2013 at 9:32 am #65353Brian Dusablon
ParticipantJen,
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 #65355ecoofficegals
MemberHey 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 GalsOctober 5, 2013 at 1:33 pm #65485ecoofficegals
MemberDoes anyone know a final fix to get this on single posts? Thanks!
Jen Smith
Owner, Eco-Office Gals -
AuthorPosts
- The forum ‘Design Tips and Tricks’ is closed to new topics and replies.