I am changing the banner in the header based on the page id:
if(is_page(14) or is_page(16))
{ $class_name='bannerExp'; }
if(is_page(18) or is_page(52) or is_page(22) or is_page(20))
{ $class_name='bannerD'; }
if(is_page(27))
{$class_name='bannerJ';}
if(is_page(25))
{$class_name='bannerS';}
if(is_page(2))
{$class_name='bannerH';}
<div class="<?php echo($class_name);?>">
class_name is a different css class that loads different size and background image(banner) when the if statement is true:
.bannerExp{width: 100%; height: 440px; background-image: url(img/yyy.png);background-repeat: no-repeat;}
.bannerDev{width: 100%; height: 440px; background-image: url(img/zzz.png);background-repeat: no-repeat;}
I want also to inlude text or images inside the banner div when one of the pages is loaded. How can I achieve that?