[Resolved] Change Site Header and Title – based on page

Home Forums Support [Resolved] Change Site Header and Title – based on page

Home Forums Support Change Site Header and Title – based on page

Viewing 2 posts - 16 through 17 (of 17 total)
  • Author
    Posts
  • #1008376
    Timo

    Hi Tom. This works.

    <?php
    global $post;
    $image = get_post_meta($post->ID, 'custom_header', true);
    if ( ! empty( $image ) ) : ?>
          <img src="<?php echo $image; ?>" alt="" />
    <?php else : ?>
          <img src="URL TO MY DEFAULT LOGO" alt="" />
    <?php endif; ?>

    But when i scroll down on the page, the “original” Logo shows up in the sticky header. How can solve this? Need in sticky also the Logo from the Custom Fields metabox.

    Thanks!!!
    Timo

    #1008770
    Tom
    Lead Developer
    Lead Developer

    Hi there,

    Any chance you can link me to your site? Feel free to open a new topic if you want to share it privately.

    Thanks!

Viewing 2 posts - 16 through 17 (of 17 total)
  • You must be logged in to reply to this topic.