Wordpress Themes - WP Forum at BFA

Wordpress Themes - WP Forum at BFA (http://forum.bytesforall.com/index.php)
-   Page & Category Menu Bars (http://forum.bytesforall.com/forumdisplay.php?f=10)
-   -   [SOLVED] different templates for "each" pages (http://forum.bytesforall.com/showthread.php?t=6674)

lambdaka Apr 10, 2010 12:08 PM

[SOLVED] different templates for "each" pages
 
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..??:confused:

I can figure it out..!
maybe I m too focus and I can't really put thing into perspective. :p
Thanks ! ! :)
S.

juggledad Apr 11, 2010 05:23 AM

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

lambdaka Apr 11, 2010 06:18 AM

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 !

juggledad Apr 11, 2010 07:02 AM

Just put it in the ato>add HTML/CSS Inserts>CSS Inserts
You don't won't to edit the style.CSS at all.

lambdaka Apr 11, 2010 08:36 AM

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 !

lambdaka Apr 11, 2010 09:18 AM

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 ! !
:)

juggledad Apr 11, 2010 09:19 AM

yup, take a look thru the forums

lambdaka Apr 11, 2010 04:04 PM

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 :p

thanks by advance...

Pam Stevenson Apr 11, 2010 08:43 PM

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.

juggledad Apr 12, 2010 06:04 AM

Lambdaka, add an ID=.... To your code so you can specify it in the CSS selector

lambdaka Apr 19, 2010 03:51 AM

Hi
Ok thanks
I managed to make it work...


All times are GMT -6. The time now is 11:21 PM.

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