Different Logo per Category
Hello,
I would like to change my Logo per Category.
For Example:
- The whole page have the standard logo which I configure on the settings page.
- All Pages/Posts/Archives etc. under category "xxx" have a different logo.
How can I handle this?
Kind regards,
Waldemar
I would like to change my Logo per Category.
For Example:
- The whole page have the standard logo which I configure on the settings page.
- All Pages/Posts/Archives etc. under category "xxx" have a different logo.
How can I handle this?
Kind regards,
Waldemar
Comments
we are sorry but we do not have possibility to change logos per categories unfortunately.
Thanks for understanding!
on the internet I found a snippet, which could do this over the functions.php in the child-theme. I'm not fit in php, so I don't know, what I have to change in this snippet, so that it works.
Could you please have a look on that?
***
add_filter('tc_logo_src', 'my_logo');
function my_logo($original){
if (is_category(5) )
return esc_url( 'YOUR_LOGO_URL');
else return $original;
}
***
Kind regards
Thanks for understanding!