Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #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,

    #236704

    Hey!

    You’ll need to put the is_page functions this way:

    is_page( array( 3120, 3202 ) );
    

    Cheers!
    Josue

    #236809

    Hey 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,

    #237161

    Hey!

    What’s the issue? could you elaborate please?

    Best regards,
    Josue

    #237181

    Hey 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,
    michi

    #238014

    Hey!

    You can try this css code to hide the logo:

    
    .header-scrolled .logo a > img{ opacity: 0; }
    

    Regards,
    Peter

    #238061

    Hey Dude,
    that works great, MANY THANKS!! for your help.
    Best regards,

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

The topic ‘Header with different logos’ is closed to new replies.