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 » Page & Category Menu Bars »

[SOLVED] different templates for "each" pages


  #1  
Old Apr 10, 2010, 01:08 PM
lambdaka's Avatar
lambdaka
 
94 posts · Apr 2010
France
Hi again ! !

I almost finishhed this website:
http://krikor.fr/profile

But for the projects pages (at left : the dead hillbillies, plein soleil, as Mr K. etc..)
I would like to have a different template for each different projects. (in fact I just want different background images)
So I would like to have 5 differents templates.

I found how to configre new template by uploading a .php with that code in begining:
<?php
/*
Template Name: template1
*/
?>

after that in wordpress configuration I can choose my template at the right of the "page" configuration..
everything is ok,.
My new page with my new template is blank as I didn't put anything in my template1.php, that's normal, it's ok..!

But my question now.. ??!
How Can I keep the same shape of my others pages (two sidebars, center column etc..), but with a different background-image for the header, for the center column and for the whole page..??

I can figure it out..!
maybe I m too focus and I can't really put thing into perspective.
Thanks ! !
S.
  #2  
Old Apr 11, 2010, 06:23 AM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
if you just want to have a different background on each page, you can do it with CSS
HTML Code:
body.page-id-2  {
background: url(http://yourdomain.com/wordpress/wp-content/uploads/bg1.jpg);
}
body.page-id-3  {
background: url(http://yourdomain.com/wordpress/wp-content/uploads/bg3.jpg);
}
to get teh page ID, edit the page and look at the address bar wich will look something like
...../wp-admin/page.php?action=edit&post=40
the number at the end is the page id
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #3  
Old Apr 11, 2010, 07:18 AM
lambdaka's Avatar
lambdaka
 
94 posts · Apr 2010
France
Hi Juggledad.
Thanks for you reply..
So I erased my new template and
I tried to put that code in my stylsheet.css :

Code:
body.page-id-179  {
background: url(http:///www.krikor.fr/wp-content/uploads/utiles/live.jpg);
}
But doesn't seems to work..
Am I doing what I suppose to..?
Do I need to do something else..?
Sorry I m only workin with css and wordpress for 2 month and I m very far from understanding everything.. !

other question:
Is there a way to have a different center column backround for each page...?

Thanks and thanks !
  #4  
Old Apr 11, 2010, 08:02 AM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
Just put it in the ato>add HTML/CSS Inserts>CSS Inserts
You don't won't to edit the style.CSS at all.
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support

Last edited by juggledad; Apr 11, 2010 at 08:08 AM.
  #5  
Old Apr 11, 2010, 09:36 AM
lambdaka's Avatar
lambdaka
 
94 posts · Apr 2010
France
THANKS !

it worked !
thanks !
first step to the end of this site ! !

Do you think it's possible to change the background of the layout for the same page..?

And for the backround of the header..? or maybe just take off the header for the same page..?

Thanks !
  #6  
Old Apr 11, 2010, 10:18 AM
lambdaka's Avatar
lambdaka
 
94 posts · Apr 2010
France
Ok,
new step..
I manage to change the column by inserting :
Code:
body.page-id-179 #container {
background: url(http:///www.krikor.fr/wp-content/uploads/utiles/live.jpg);
}
hope it's not a mistake ! !

i just need to change the header and everything will be ok..
I don't use a simple image for my header, but a code with rollover css..hope will not make changing the header for specified page harder..

One step and this post is solved ! !
  #7  
Old Apr 11, 2010, 10:19 AM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
yup, take a look thru the forums
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #8  
Old Apr 11, 2010, 05:04 PM
lambdaka's Avatar
lambdaka
 
94 posts · Apr 2010
France
Hi again !
Ok I found the css code needed to remove header for a specific page..
Code:
body.page-id-179 #imagecontainer {
display: none;
}
Unfortunately it doesn't work cause I don't use the %image in the header area, but I directly pasted some css and html code (in the way to have rollover links in the header)..

Please !
Someone have a way to hide the header on a specific page, maybe with a template..?
I tried to make one copied the index.php..But can't find what I need to erase from it !

This is the final step of the site. ..I will finish crazy

thanks by advance...
  #9  
Old Apr 11, 2010, 09:43 PM
Pam Stevenson
 
1 posts · Apr 2010
New Zealand
Help. I am a wordpress "Newbie" and have now spent countless hours trying to use new page templates in Atahualpa. Have copied the index.php file to notepad, added the header outlined in these forums and uploaded to the Atahualpa directory. My problem is that I can't find an option to select other than the default template in either New or Edit pages.
  #10  
Old Apr 12, 2010, 07:04 AM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
Lambdaka, add an ID=.... To your code so you can specify it in the CSS selector
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #11  
Old Apr 19, 2010, 04:51 AM
lambdaka's Avatar
lambdaka
 
94 posts · Apr 2010
France
Hi
Ok thanks
I managed to make it work...

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to post on 2 seperate "Pages" or "Cats" TPR Atahualpa 3 Wordpress theme 18 Aug 4, 2010 09:24 PM
[SOLVED] Confusing &quot;Style Posts and Pages&quot;- there is no main tab &quot;Text &amp; Link Styling treeplant Center area post/pages 4 Apr 5, 2010 08:49 AM
How to change the font of "1 comment to..." and "Leave a Reply" headers RHCdG Header configuration & styling 1 Nov 28, 2009 05:56 AM
Background color "sub-pages" and "whole menu bar" gxxfy Page & Category Menu Bars 1 Nov 24, 2009 03:46 AM
where can I rename "categories" and "Pages" into other titling? curious Atahualpa 3 Wordpress theme 5 Apr 28, 2009 04:15 PM


All times are GMT -6. The time now is 06:47 AM.


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