Viewing 14 posts - 1 through 14 (of 14 total)
  • Author
    Posts
  • #772629

    Hello,
    in the Enfold-Theme-options i can set the Logo (PNG) for my enfold-site. Now i want to set another logo, if someone choose a special site. Can i set another logo for a page?

    best regards, daniel

    #772900

    Hey danielrad78,

    Yes, it’s possible with some css tweaks. Can you post a link where you want the logo to change? so we can give an accurate css code for it.

    Best regards,
    Nikko

    #773022

    Yes, see private Content ;-)

    #773031

    Is it also possible, that i display on a site another Main-Menü in the header?

    #773801

    Hi,

    The link for standard logo you posted doesn’t seem to have a logo, though it shows 6 images, the reason I asked for the link so I can know the page id which can be used for the custom code, anyway, the css code should look something like this (which you need to add in Quick CSS, located in Enfold > General Styling):

    .page-id-xx .logo img {
        content: url(https://www.yourdomain.com/your_logo.png);
    }

    xx in page-id is basically the page id number, and http://www.yourdomain.com/your_logo.png is your new image/logo’s url.

    As for having different menu, it would require deep customization and changes to this core file enfold/includes/helper-main-menu.php, the easiest way to do this is to have a 1 single menu, then assign a class name for menu item, which you can use to hide or show on specific pages. Hope this helps :)

    Regards,
    Nikko

    #859247

    Hi. I used this quick CSS to put different logos on different pages of my site and it worked perfectly. However, I was wondering how I can have those logos link to a different url than the homepage. Could someone please tell me what code I would need to add to do that?

    Thanks,
    Rachel

    #859250

    Hey Rachel,

    Please use following code in Appearance > Editor > Functions.php file instead

    add_filter('avf_logo_link','av_change_logo_link');
    function av_change_logo_link($link)
    {
        if(is_page(9) )
    {
        $link = "http://kriesi.at";
    }
        return $link;
    }
    
    add_filter('avf_logo','av_change_logo');
    function av_change_logo($logo)
    {
        if(is_page(9) )
        {
        $logo = "http://kriesi.at/wp-content/themes/kriesi/images/logo.png";
        }
        return $logo;
    }

    and replace 9 with your pages ID

    Regards,
    Yigit

    #859287

    Thank you, that worked! What if I want to do that for multiple pages?

    #859295

    Hi!

    Then you can use the code as following

    add_filter('avf_logo_link','av_change_logo_link');
    function av_change_logo_link($link)
    {
    if(is_page(array(59,79)))
    {
        $link = "http://kriesi.at";
    }
        return $link;
    }
    
    add_filter('avf_logo','av_change_logo');
    function av_change_logo($logo)
    {
    if(is_page(array(59,79)))
        {
        $logo = "http://kriesi.at/wp-content/themes/kriesi/images/logo.png";
        }
        return $logo;
    }

    Best regards,
    Yigit

    #859317

    That’s perfect! Thank you!

    #859327

    So sorry, one more question…
    I want to do the same thing for additional pages with a different logo to a 2nd URL. Is that possible?

    #859712

    Hi,

    Please use the code as following

    add_filter('avf_logo_link','av_change_logo_link');
    function av_change_logo_link($link)
    {
    if(is_page(array(59,79)))
    {
        $link = "http://kriesi.at";
    }
    if(is_page(array(69,89)))
    {
        $link = "http://kriesi.at/2/";
    }
        return $link;
    }
    
    add_filter('avf_logo','av_change_logo');
    function av_change_logo($logo)
    {
    if(is_page(array(59,79)))
        {
        $logo = "http://kriesi.at/wp-content/themes/kriesi/images/logo.png";
        }
    if(is_page(array(69,89)))
        {
        $logo = "http://kriesi.at/wp-content/themes/kriesi/images/logo2.png";
        }
        return $logo;
    }

    Best regards,
    Yigit

    #859743

    Thank you so much! Sorry for all the questions, I really appreciate your help!

    #859744

    Hey,

    Not at all! :)

    For your information, you can take a look at Enfold documentation here – http://kriesi.at/documentation/enfold/
    And if there are features that you wish Enfold had, you can request them and vote the requested ones here – https://kriesi.at/support/enfold-feature-requests/
    For any other questions or issues, feel free to post them here on the forum and we will gladly try to help you :)

    Best regards,
    Yigit

    P.S.: Please consider reviewing Enfold on ThemeForest if you have not already – https://themeforest.net/downloads :)

Viewing 14 posts - 1 through 14 (of 14 total)
  • The topic ‘Different Logo on different sites’ is closed to new replies.