• Hi,
    On my webpage MMAmania.dk i want to place banner at the top like on this test page i have Test Page but on the “test page” it is placed in the header.php and is therefore, one each page. And this I would like to avoid, as there are some pages where it will not be optimal.

    I hope someone can help me with this

Viewing 3 replies - 16 through 18 (of 18 total)
  • Well…you could use jQuery to hide the banner…but this of course isn’t the best solution (users with js turned off will see the banner). It should work though

    <?php if ( is_page( '9' ) || is_page( '23' ) || is_page( '28' ) || is_page( '901' ) || is_page( '700' ) || is_page( '126' ) || is_page( '2327' ) || is_page( '148' ) || is_page( '1544' ) ) { ?>
    <script type="text/javascript">
    	$(document).ready(function() {
    		$('#banner').hide();
    	});
    </script>
    <?php } ?>
    Thread Starter Daniel Nielsen

    (@dabeni)

    I found out how to do it

    <?php if ( !is_page( array( 42, 54, 6 ) )  ) { ?>
    //My code
    <?php } ?>

    Thanks for your help

    Ah! Don’t know why I didn’t think of that. Nice work!

Viewing 3 replies - 16 through 18 (of 18 total)
  • The topic ‘Placement of banners’ is closed to new replies.