Forum Replies Created

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter markusl

    (@markusl)

    I got it figured out by using a copy of the originals theme front-page.php to my child theme and changing the code within. From:
    $template = ( $template == 'default' ) ? 'index.php' : $template;
    To:
    $template = ( $template == 'default' ) ? 'the-page-template-i-want-to-use-for-my-front-page-page.php' : $template;

    And then obviously having a file with the corresponding name in the same folder called: “the-page-template-i-want-to-use-for-my-front-page-page.php”. Which is to be called as the template for my front page.

    Thanks a bunch!

    Thread Starter markusl

    (@markusl)

    asylum119: guess I missunderstood you. Sorry.

    Where putting “* Template: the template name” is just for your own, personal, knowledge, right?

    Cause that would not have any significance for WordPress.

    but when you say:
    “You will however still be able to set it as the static home page so my advice would be to follow the documentation to create a custom page template and if adding comments replace the following.”

    I don’t really get it. It sounds confusing. Why would I like to set a template as the front page?

    Instead of using the already existing template that is actually intended for this very reason?

    Thread Starter markusl

    (@markusl)

    asylum119: sure it would; but then it would be unnecessary to create a template that is not going to be used in the first place. I want to use it. I just dont want all the Authors and Editors reaching it as a Global Template.

    alchymyth: I was looking into that. Did some research but I guess I have to dig in deeper and more thoroughly then. Thank you!

Viewing 3 replies - 1 through 3 (of 3 total)