Wordpress Themes - WP Forum at BFA
There will be no more development for Atahualpa (or any other theme), and no support. Also no new registrations. I turned off the donation system. I may turn the forum to read only if it gets abused for spam. Unfortunately I have no time for the forum or the themes. Thanks a lot to the people who helped in all these years, especially Larry and of course: Paul. Take care and stay healthy -- Flynn, Atahualpa developer, Sep 2021

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


  #1  
Old Feb 16, 2011, 05:44 AM
levenssfeer
 
30 posts · Oct 2010
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
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
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' ; } ?> 
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
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
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
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' ;} ?> 
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
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 02:30 AM.


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