Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #874905

    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.

    #874915

    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;
     
    }
    #875276

    Hi fabienneBESD,

    Glad you got it working for you! :)

    If you need further assistance please let us know.
    Best regards,
    Victoria

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.