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

    I need to have different headers (including also correspondingly different Logos) for certain pages of my site.
    My idea was to define different page templates (page-1.php, page-2.php…) and to choose the right template on my backend. Each of the page-x. php templates should then call a correspondig header-x.php file thus allowing to change Logo and colors of the menue.
    However until now I didn’t find the point where the logo is loaded.

    Can you give me a hint? (or of course if another method to meet the requirement is preferable I would be glad to know)
    Thanks in advance!

    #923173

    Hey,

    You can use a plugin such as this one – https://wordpress.org/plugins/zen-menu-logic/ to display different menu per page.

    You can use following code to change logo URL on certain pages

    add_filter('avf_logo_link','av_change_logo_link');
    function av_change_logo_link($link)
    {
        $link = "http://kriesi.at";
        return $link;
    }

    and following one to change logo on certain pages

    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;
    }

    Best regards,
    Yigit

    #923225

    Hi Yigit: thx: even if its reprehensible: i will checkout the plugin :-)

    #923228

    Hi,

    Please return to let us know the results.

    Best regards,
    Jordan Shannon

    #923991

    Hi: for my requirements I have no the following solution:

    Yigits snippet in the funtion.php (Child!) changes the logo:

    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;
    }

    The mentioned plugin above allows different menues however (at least as far as I understand) not different colors.

    This is why I change the colors over the quick css with the following statements:

    #top.page-id-2 #header_main {
    background-color: #ffffff !important;
    }

    #top.page-id-2 #advanced_menu_toggle {
    background-color: #ffffff !important;
    }

    That’s it! BR Clemens

    #924002

    Hi,

    Did you need further help on this topic or shall we close it?

    Best regards,
    Jordan Shannon

    #1062927

    Is there a line of code to also include logo on post, post categories, event plugin post etc?

    Trying to change the logo for the events plugin category page I have installed.

    #1064076

    Hi,

    You can simply use Events Calendar conditional tags listed here – https://gist.github.com/jo-snips/2415009

    Best regards,
    Yigit

    #1068590

    Sorry I don’t fully understand. Can you give an example of where an how I would edit functions.php to include an alternative logo on certain events categories?

    #1069089

    Hi zthomp,

    Please refer to instructions posted in this thread:
    https://kriesi.at/support/topic/different-logo-on-different-pages

    If you need further assistance please let us know.
    Best regards,
    Victoria

Viewing 10 posts - 1 through 10 (of 10 total)
  • You must be logged in to reply to this topic.