Wordpress Themes - WP Forum at BFA
Click Here To DONATE! Support the theme development, get more attention and additional benefits based on your donation level. Your forum name will be highlighted.

Wordpress Themes - WP Forum at BFA » WordPress Themes » Atahualpa 3 Wordpress theme » Header configuration & styling »

How to have only %image shown in several pages, while for the rest the complete thing


Build custom WP THEMES, without
coding.
Click here for THEMEFRAME

From the author of Atahualpa, the #1 most
downloaded (700,000+) theme @ wordpress.org
  #1  
Old Feb 16, 2011, 05:44 AM
levenssfeer
 
30 posts · Oct 2010
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?
  #2  
Old Feb 16, 2011, 07:15 AM
juggledad's Avatar
juggledad
 
21,704 posts · Mar 2009
OSX 10.8.5 WP 3.8.x Atahualpa 3.7.x Safari 6.x Firefox 25 XP
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' ; } ?> 
__________________
If you like my help, please consider donating. I am happy to provide greater detail on this and other topics if you hire me. Please send detailed support requests to me as a private message, thank you.
Juggledad | Forum Moderator/Support
  #3  
Old Feb 17, 2011, 02:11 AM
levenssfeer
 
30 posts · Oct 2010
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....
  #4  
Old Feb 17, 2011, 03:43 AM
juggledad's Avatar
juggledad
 
21,704 posts · Mar 2009
OSX 10.8.5 WP 3.8.x Atahualpa 3.7.x Safari 6.x Firefox 25 XP
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' ;} ?> 
__________________
If you like my help, please consider donating. I am happy to provide greater detail on this and other topics if you hire me. Please send detailed support requests to me as a private message, thank you.
Juggledad | Forum Moderator/Support
  #5  
Old Feb 18, 2011, 02:10 PM
levenssfeer
 
30 posts · Oct 2010
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.

Last edited by levenssfeer; Feb 18, 2011 at 02:12 PM.

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
header image rotating - one quick and the rest slow btwimages Header configuration & styling 2 Nov 21, 2010 07:53 AM
[SOLVED] Title / Tagline duplicate when shown over Image quentinjs Header configuration & styling 1 Sep 28, 2010 04:34 PM
Howto: Header Image on (static) frontpage ONLY (not rest of blog) RuBeQK Header configuration & styling 1 Jul 28, 2010 01:24 PM
Different Header Image for Home and the Rest of Site cmarkward Header configuration & styling 4 Dec 3, 2009 03:59 AM
Newbie here. How do I place sidebar in pages? No side bars are shown in pages. xtrong Sidebars & Widgets 12 Jul 10, 2009 06:24 PM


All times are GMT -6. The time now is 08:32 AM.


Powered by vBulletin® Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.