Leaving out certain divs

About the template and stylesheet - and changing the menu
Post Reply
bca
Posts: 293
Joined: Tue Sep 15, 2009 4:49 pm

Leaving out certain divs

Post by bca » Thu Dec 20, 2012 3:35 pm

Hi
To save having multiple templates is there an instruction to insert into a template that would say " If i am on Page 1 show this DIV else hide it"

b

cmb
Posts: 14225
Joined: Tue Jun 21, 2011 11:04 am
Location: Bingen, RLP, DE
Contact:

Re: Leaving out certain divs

Post by cmb » Thu Dec 20, 2012 4:17 pm

Hi b,

yes, there is. See Newsbox on Start Page only.

Christoph
Christoph M. Becker – Plugins for CMSimple_XH

bca
Posts: 293
Joined: Tue Sep 15, 2009 4:49 pm

Re: Leaving out certain divs

Post by bca » Fri Dec 21, 2012 9:35 am

hi christoph

Thanks for the pointer. Works a treat.

used

Code: Select all

<?php if ($s === 0) { ?>
           <div>.....   </div>    
         <?php } ?>   
b

Post Reply