Use if
statements. Use two statements so that you don’t get duplicate banners.
<body>
<?php
if( yourcondition ){
include ("./../included/header.php");
}
?>
<div id="page-wrap">
<div id="main-wrap">
<div id="main-header">
<?php
if( yourcondition ){
include ("./../included/header.php");
}
?>
</div>
solved Reorder an HTML element based on a condition? [closed]