Title: Custom field on home.php
Last modified: August 21, 2016

---

# Custom field on home.php

 *  [lwish](https://wordpress.org/support/users/lwish/)
 * (@lwish)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/custom-field-on-homephp/)
 * 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)

 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/custom-field-on-homephp/#post-4204535)
 * 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](https://wordpress.org/support/users/lwish/)
 * (@lwish)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/custom-field-on-homephp/#post-4204541)
 * 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.
 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/custom-field-on-homephp/#post-4204601)
 * 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.

## Tags

 * [custom field](https://wordpress.org/support/topic-tag/custom-field/)
 * [home](https://wordpress.org/support/topic-tag/home/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 3 replies
 * 2 participants
 * Last reply from: [esmi](https://wordpress.org/support/users/esmi/)
 * Last activity: [12 years, 9 months ago](https://wordpress.org/support/topic/custom-field-on-homephp/#post-4204601)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
