• Hello all.

    I’m working on a theme where one of the page types is a full screen image.
    To style the page properly I have a custom header file and a custom template file for this page.

    When the page is accessed from the menu,it works as I want it to.
    If I set the page as the front page it does not work. The problem is that wordpress then selects index.php instead of my custom template php file.

    Is it possible to make WordPress use the template? Or is it something wrong in how I have made the theme?

    Suggestions on how this is best solved is also welcomed.

    Endre

Viewing 1 replies (of 1 total)
  • Thread Starter Endre Solem

    (@endres)

    This page gave me a solution to my problem: http://codex.wordpress.org/Template_Hierarchy

    I had a front-page.php file in my theme and it was that file, not index.php, that got triggered when I set my “full screen image”-page as the front page. When I removed it wordpress worked it’s way through the hierarcy and found my custom template.

    This might not be the best way to solve this, so if you have a better soultion please let me know.

Viewing 1 replies (of 1 total)

The topic ‘Custom page template as first page’ is closed to new replies.