• HI there. I’m trying to test a few different arrangements for my front page. I’d like to give readers a few choices of layouts.

    So I wanted to start with a clone of the front page that I could then tinker with.

    I copied index.php and uploaded a new templates alt-index.php

    It’s exactly the same other than the name. I create a “page” using that alt template but the result is completely different – not a clone.

    Why would this not be working?

    Thanks!

Viewing 6 replies - 1 through 6 (of 6 total)
  • Perhaps the theme you are using relies on some is_home or is_frontpage conditions?

    Thread Starter nickaster

    (@nickaster)

    hmmm… could be. But isn’t index.php *always* the front page? why would someone put those conditions in it?

    Thread Starter nickaster

    (@nickaster)

    Okay… interesting. You’re right, there were some “is_frontpage” things in there. Getting rid of them gets me closer. But there are lots of other problems, and most importantly, if i decide I like this new layout it’ll be a nightmare to re-do all those conditions.

    Surely there’s an easier way to test out different front page layouts without tinkering with the live front page, no?

    Isn’t there just simple way to “clone” it without creating “pages” or junk like that?

    Thread Starter nickaster

    (@nickaster)

    Even some kind of clever plugin might help … I guess I could use the test-drive theme plugin but seems like overkill for something so simple!

    The easiest way may be to replace all the is_front_page() with
    !is_front_page()

    Thread Starter nickaster

    (@nickaster)

    OKay thanks!

    So…. that ! just means “not front page” right?

    There is still a load of other stuff on the page that’s wrong. Basically, since I have to create a “page”, the supposed new front page just takes the title and content from my fake page and completely ignores all the posts on the blog, like a front page is supposed to do.

    Why would that be?

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Creating an Alternate Front Page’ is closed to new replies.