-
AuthorPosts
-
March 12, 2014 at 5:48 pm #236419
Hello,
we need two different logos in our website header and I found a topic in this forum, with which I got it. Now we need the special logo of the homepage on on another page of the site, all other pages have the same normal logo. Now I need info, how I can specify the second page for displaying the right logo.I changed in header.php of child theme (according to your forum topic):
from: ” echo avia_logo(AVIA_BASE_URL.’images/layout/logo.png’, false, ‘strong’);”
to
“if(is_page(3120))
{
echo avia_logo(AVIA_BASE_URL.’images/layout/logo1.png’, false, ‘strong’);
}
else
{
echo avia_logo(AVIA_BASE_URL.’images/layout/logo2.png’, false, ‘strong’);”How could I arrange, that the first logo (logo1.png) is visible on a second page, that means how can I fill in the second page id?
I tried to fill in the second page ID comma separated in the ” if(is_page(3120)) – area, so it looks in this way if(is_page(3120, 3202)) , but that didn´t works.
Maybe you can give me an advice, that would be very helpful and nice.
Thanks a lot,Thanks a lot in advance,
March 13, 2014 at 6:06 am #236704Hey!
You’ll need to put the is_page functions this way:
is_page( array( 3120, 3202 ) );
Cheers!
JosueMarch 13, 2014 at 11:12 am #236809Hey Josue,
thanks a lot for your advice. By doing it I saw that there is a new Enfold Update with new header features – PERFECT !!! – matches exactly our claims. THANK YOU ALL.
Now I have only one further question: we have activated the “shrinking header” option and the different logos are now visible one upon the other by scrolling. I you want to have a look: http://gode2.web-by-michi.de/, maybe you have a workaround here.
Thanks a lot in advance,March 13, 2014 at 8:26 pm #237161Hey!
What’s the issue? could you elaborate please?
Best regards,
JosueMarch 13, 2014 at 9:04 pm #237181Hey Josue,
thanks for reply. When I´m looking to pages with the standard logo, the shrinking header is ok, but when I´m srolling on pages with the alternate logo, both logos are visible in small version (one lay over the other) see here http://gode2.web-by-michi.de/energie/ or http://gode2.web-by-michi.de/kleinwindkraftanlagen/.
Maybe you have an idea how to fix it? Many thanks in advance,
michiMarch 15, 2014 at 12:59 pm #238014Hey!
You can try this css code to hide the logo:
.header-scrolled .logo a > img{ opacity: 0; }
Regards,
PeterMarch 15, 2014 at 3:51 pm #238061Hey Dude,
that works great, MANY THANKS!! for your help.
Best regards, -
AuthorPosts
- The topic ‘Header with different logos’ is closed to new replies.