Support » Fixing WordPress » if(is_page( )) not working

  • I’m trying to swap out some logos and the function if(is_page( )) isn’t working for me. I’m trying to add in this logo to the top of page 49 but I can’t seem to get it working. If I take it away and just leave the echo ‘…’ code it works fine but applies it to every page, so that means there’s something wrong with the if(is_page ()) code. I’d greatly appreciate any help you can give.

    <?php
        if(is_page(49)){
            echo '<div class="header-logo-image"><a rel="home" title="Wisechoice Financial Services" href="http://2cf.bbe.myftpupload.com/"><img alt="Wisechoice Financial Services src="http://2cf.bbe.myftpupload.com/wp-content/uploads/2016/03/OFFICIAL-Wise-Choice-Financial-Logo.jpg"></a></div>';
        }
    ?>
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘if(is_page( )) not working’ is closed to new replies.