 
	
		
		
		
		
			
- 
		AuthorPosts
- 
		
			
				
February 28, 2020 at 11:26 am #1188803Hi, 
 I would like to have a different logo for the woocommerce pages.
 So I use the folowing CSS code
 .page-id-xx .logo img {
 content: url(https://www.yourdomain.com/your_logo.png);
 }
 found here : https://kriesi.at/support/topic/different-logo-on-different-sites/It works fine for somes pages, but not for the shop and product page. 
 I don’t understand why ?
 Can you please have a look in my test site ?
 How can I see the ID of the product page ?
 I don’t see this page in the admin/pages
 ThanksFebruary 29, 2020 at 9:03 pm #1189082Hey ppi37, Best regards, 
 VictoriaMarch 1, 2020 at 8:44 pm #1189255Hi Victoria, 
 So, Can you tell me how can I change the logo in the woocommerce pages ?
 I will also search on my side
 ThanksMarch 5, 2020 at 11:01 am #1190375Hi, Thank you for the update. Try to change the logo using the avf_logo filter instead of css. function avf_change_logo($logo) { if(is_archive() || is_shop()) { $logo = "http://site.at/images/logo.png"; } return $logo; } add_filter('avf_logo','avf_change_logo');Please don’t forget to adjust the logo URL. Best regards, 
 IsmaelMarch 14, 2020 at 1:54 pm #1193091Hi Ismael, 
 Your code works but just for the shop page (not for the product pages).
 So I modifie it for the pages I have the IDfunction avf_change_logo($logo) 
 {
 if(is_archive() || is_shop() || is_page(array(768,769,770,771,772,773,774,837))) {
 $logo = “https://test.ericroymaraicher.fr/wp-content/uploads/2020/02/logo-le-jardin-des-roy.png”;
 }
 return $logo;
 }
 add_filter(‘avf_logo’,’avf_change_logo’);can you please, give me the update for the product pages 
 ThanksMarch 15, 2020 at 9:16 pm #1193296Hi ppi37, You need to add the check for the product page too: is_product()If you need further assistance please let us know. 
 Best regards,
 VictoriaMarch 15, 2020 at 9:47 pm #1193322by the way if you do not like to have these arrays with a loto of lists: 
 this could be an interesting link for you : https://kriesi.at/support/topic/different-header-logo-for-different-sections-of-website/#post-1065071
 that is for all suppages .
 On Categories there are more condition tags to include whole sets : https://codex.wordpress.org/Conditional_Tags but see difference is_category() , has_category() and in_category()March 16, 2020 at 7:02 pm #1193570Hi, 
 This code seems to work, so I’m going to choose this option.
 /*
 * Pour avoir un logo différent sur les pages de la boutique
 */
 function avf_change_logo($logo)
 {
 if(is_archive() || is_shop() || is_product() || is_page(array(768,769,770,771,772,773,774,837,863))) {
 $logo = “https://test.ericroymaraicher.fr/wp-content/uploads/2020/02/logo-le-jardin-des-roy.png”;
 }
 return $logo;
 }
 add_filter(‘avf_logo’,’avf_change_logo’);Thanks a lot everyboby March 16, 2020 at 7:59 pm #1193600Hi, Did you need additional help with this topic or shall we close? Best regards, 
 Jordan ShannonMarch 16, 2020 at 8:10 pm #1193604Ho Jordan, 
 You can close.
 ThanksMarch 16, 2020 at 8:27 pm #1193612Hi, If you need additional help, please let us know here in the forums. Best regards, 
 Jordan Shannon
- 
		AuthorPosts
- The topic ‘different logo for the woocommerce pages’ is closed to new replies.
