I have created a few pages with a specific colorscheme. To call them, I gave them a custom type field called ‘farbschema’.
On pages where the colorscheme exists, I would like to display a different logo.
Please find the link to the code in pastebin in the private content area.
It is not working. Can you point out my mistake to me?
Thank you.
I was an idiot.
I forgot that I gave my frontpage a ctf for testing purposes.
Works now with this code:
function av_change_logo_url($url)
{
global $post;
$logo_change = get_post_meta( $post->ID, 'farbschema', true );
if ( $logo_change )
{
$url = "some_logo";
}
else
{
$url = "some_other_logo";
}
return $url;
}
Hi fabienneBESD,
Glad you got it working for you! :)
If you need further assistance please let us know.
Best regards,
Victoria