 
	
		
		
		
		
			
- 
		AuthorPosts
- 
		
			
				
March 7, 2018 at 6:11 pm #923170I 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!March 7, 2018 at 6:19 pm #923173Hey, 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, 
 YigitMarch 7, 2018 at 7:06 pm #923225Hi Yigit: thx: even if its reprehensible: i will checkout the plugin :-) March 7, 2018 at 7:08 pm #923228Hi, Please return to let us know the results. Best regards, 
 Jordan ShannonMarch 8, 2018 at 6:48 pm #923991Hi: 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 March 8, 2018 at 7:10 pm #924002Hi, Did you need further help on this topic or shall we close it? Best regards, 
 Jordan ShannonFebruary 4, 2019 at 11:58 pm #1062927Is 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. February 7, 2019 at 12:48 pm #1064076Hi, You can simply use Events Calendar conditional tags listed here – https://gist.github.com/jo-snips/2415009 Best regards, 
 YigitFebruary 18, 2019 at 8:43 pm #1068590Sorry 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? February 19, 2019 at 8:56 pm #1069089Hi zthomp, Please refer to instructions posted in this thread: 
 https://kriesi.at/support/topic/different-logo-on-different-pagesIf you need further assistance please let us know. 
 Best regards,
 Victoria
- 
		AuthorPosts
- You must be logged in to reply to this topic.
