Hi,
I found a proposal for changing the logo for different sections in this support forum, but it does not work. I paste you what I wrote. Please tell me what is wron.
function is_tree($pid) {
global $post;
if(is_page()&&($post->post_parent==$pid||is_page($pid)))
return true;
};
add_filter(‘avf_logo’,’av_change_logo’);
function av_change_logo($logo)
{
if(is_tree(11097) )
{
$logo = “https://www.myDomain.es/wp-content/uploads/2019/02/logo-1.jpg”;
}
else if(is_tree(11171) )
{
$logo = “https://www.myDomain.es/wp-content/uploads/2019/02/logo-2.jpg”;
}
else if(is_tree(11880) )
{
$logo = “https://www.myDomain.es/wp-content/uploads/2019/02/logo-3.jpg”;
}
return $logo;
}
Could it be that the problem ist that these are posts in one case and WooCommerce products on the other?
If yes, what would be the solution?
Hi HeinzRudolf,
Can you give us temporary admin access to your website in the private content box below, so that we can have a closer look?
Best regards,
Victoria