How to have only %image shown in several pages, while for the rest the complete thing
Hi,
Currently I have: <?php if ((! is_page('page1')) and (! is_page('page2'))and (! is_page('page3'))) {echo '%logo %pages %image %cats' ; } ?> but, I change my mind and want %image to be shown on those pages. how to do this? |
I will assume you have this in the 'Configure Header Area' option' just change the statement
HTML Code:
%logo <?php if ((! is_page('page1')) and (! is_page('page2'))and (! is_page('page3'))) {echo ' %pages %image %cats' ; } ?> |
mmm, doesn't work, juggledad.... any changes after 'echo' actually affecting all other pages accept page1,2,3.
what I would like to have is to have banner image only at page1,2,3 and leave the other pages as it is now. It is quite confusing, actually.... |
well you could use an else
HTML Code:
<?php if ((is_page('page1')) OR (is_page('page2')) OR (is_page('page3'))) {echo '%logo' ; } else {echo '%logo %pages %image %cats' ;} ?> |
It works, thank you so much.
In addition to that I am wondering how to do this: page1,2,3 show only %image page 4 show no header at all the rest show the complete thing Thank you very very much in advance. |
All times are GMT -6. The time now is 09:30 AM. |
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.