ThemeShaper Forums » Thematic


Different Layouts for Different Pages - Issue

(3 posts)
  • Started 10 years ago by kgoodman
  • Latest reply from kgoodman
  • This topic is resolved
  1. kgoodman

    Hi -
    Read Chris' great post here:

    Overall, it works great with one issue I can't resolve.

    Under Reading Settings, I've set the Front Page Displays Static Page "Home"; and I've sent Posts Page to be "Blog".

    The multi-layout tips Chris supplied for differing layouts works great.

    Except that I get the 3 column-layout for the HOME and BLOG pages. When I just want it to be on the Home page and not the Blog page.

    Additionally, the 3-column layout is applied to any page that I set to display POSTS.

    What am I missing? Thanks for your help.


    Posted 10 years ago #
  2. check out :

    if (is_home()) refers to the blog index (which is why it will apply to any page you set to display the posts... and you can only set it to one as far as i know), while if (is_front_page()) is the home page.

    chris' code has some || in its if statement (which means OR) ... it is testing for either the front page or the blog index and applies the template to both. if you only want the special template to apply to the home page then remove the if(is_home()) and leave if(is_front_page()) .

    Posted 10 years ago #
  3. kgoodman

    @helgatheviking -

    Thanks for taking the time. Helped a lot.


    Posted 10 years ago #

RSS feed for this topic

Topic Closed

This topic has been closed to new replies.