• Hello,

    I’m using a custom field to change the colour of the header on all pages. Problem is, the home.php doesn’t qualify as a Page.

    Even if I change

    <?php
    /**
     * The Template for displaying all single posts.
     *
     */
    ?>

    To

    <?php
    /**
     * Template Name: Groups
     */
    ?>

    [Moderator Note: Please post code & markup between backticks or use the code button. Your posted code may now have been permanently damaged by the forum’s parser.]

    If I choose this template in the admin, with the Groups page, and fill in the custom field it appears to just use the index.php, which I don’t want.

    At the moment it seems nigh impossible to achieve this? any thoughts?

Viewing 3 replies - 1 through 3 (of 3 total)
  • What theme are you using? Where did you download it from? Is your front page also your main posts page as defined in Settings -> Reading?

    Thread Starter lwish

    (@lwish)

    Hello,

    I’ve built my own theme, my front page is a static front page which is built in the front-page.php

    I display all my blog posts on the “Groups” page, which I set in the settings > reading.

    Your Groups page will use the theme’s index.php template file automatically – irrespective of any template you try to assign.

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

The topic ‘Custom field on home.php’ is closed to new replies.