ThemeShaper Forums » Thematic

[closed]

Multiple Page Templates

(4 posts)
  • Started 3 years ago by yannibmbr
  • Latest reply from helgatheviking
  • This topic is not resolved
  1. I know this topic has been covered to death, so I apologize if seeing one more about it is like sharp stick to the eye.

    I have read the post on creating a full-width template here: http://wptheming.com/2010/03/custom-page-templates-thematic and I "get" it. I'm confused on how to do this for other types of layouts. I know that thematic has several CSS layout styles. How could I call those layouts into different page templates? I'm probably over thinking this.

    I've tried creating page templates that call the different css styles and I haven't gotten it to work. Any pointers are greatly appreciated. I'm going to do some push ups and karate stick fighing in the meantime. Brb. =)

    Posted 3 years ago #
  2. my eye!!! kidding. you could try:

    http://programming.thematic4you.com/2010/01/how-to-use-a-different-layout-for-a-certain-page/

    ps- thematic already has a full-width template, so you don't have to make one.

    Posted 3 years ago #
  3. Hey there,
    Tanks for the prompt reply and sorry about the eye. =)

    I did see that post, that you linked to, I wasn't sure if it would suit what I was doing. I'd just like to do this using a selectable page template.

    I also see a full width template is available, which is awesome.

    I'm trying to create the following page templates
    content/sidebar/sidebar
    sidebar/content/sidebar
    sidebar/sidebar/content
    sidebar/content

    Does that make sense?

    Posted 3 years ago #
  4. sure it suits what you are trying to do. you conditionally load the layout according to which template you are on. instead of the conditions chris uses you'd use is_page_template('name-o-template.php')

    or you could get around that by using wp_enqueue_style before the get_header() in the template page. i do that sometimes w/ wp_enqueue_script for scripts that i only want to load on particular templates.

    http://codex.wordpress.org/Function_Reference/wp_enqueue_style

    that might be easiest.

    Posted 3 years ago #

RSS feed for this topic

Topic Closed

This topic has been closed to new replies.