- This topic is empty.
-
AuthorPosts
-
July 19, 2008 at 7:29 pm #22950
Digitalbrit
MemberHi All
First thanks to Chris for the great series of WordPress screencasts recently – a big inspiration to us all.
My question is how to approach coding different page layouts across a WordPress site. I can see from the themes three types of pages: index, page and single, but what if you want something that doesn’t fall into one of those types.
An example of what I am talking about is http://www.woothemes.com/demo/proudfolio/. What I think I am seeing is the home page, portfolio and about pages are all unique and then there is the blog. I don’t see how these differing layouts map to just the three types of index, page and single. Presumably they don’t, so …
My next question is how do you integrate an additional page layout into a WordPress theme (additional to index, page and single). I can envisage coding the new page in php but where in WordPress do you say I want to use this new php page for a particular WordPress page?
Any pointers would be a great help.
Cheers
TimJuly 21, 2008 at 2:14 am #48610Digitalbrit
MemberHow cool is that. Cheers Toby.
Does anyone else do this differently?
July 21, 2008 at 3:04 am #48611pab
MemberWhen you write a new page in wordpress go to ‘page templates’ at the bottom
I can’t find this
July 21, 2008 at 12:55 pm #48615pab
Membercool figured it out,
Thanks for posting this Tob
:DJuly 21, 2008 at 5:27 pm #48620pab
Member"Digitalbrit" wrote:How cool is that. Cheers Toby.Does anyone else do this differently?
I’ve only been messing around with wp for a couple of weeks now and the one way I did it was to create and my own includes and feed them to the page I wanted to alter.
worked great.
the one drawback is you have to edit the page using the theme editor, it’s ok for someone who knows what they’re doing but not for a client who just wants a simple wisiwig to update their pages
July 22, 2008 at 2:20 am #48632Digitalbrit
MemberTob, this is making sense now. Thanks for taking the time and trouble to answer this fully – its really appreciated and given me heaps to play with now.
Pab, yeah I was going down the includes route but was having difficulty figuring out how to detect the page type. I basically missed the point that you can have different templates which you link at page definition time. Doh!
Cheers
Tim -
AuthorPosts
- The forum ‘CSS’ is closed to new topics and replies.