Title: Modifying the WordPress index template
Last modified: August 19, 2016

---

# Modifying the WordPress index template

 *  [monkeynuts84](https://wordpress.org/support/users/monkeynuts84/)
 * (@monkeynuts84)
 * [15 years, 12 months ago](https://wordpress.org/support/topic/modifying-the-wordpress-index-template/)
 * Hi,
    I need to modify a WP theme so that I can add a text block to the bottom
   of the index.php page. I don’t want this text to appear on any other pages on
   the site. How do I do this?
 * Thanks.

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

 *  [MichaelH](https://wordpress.org/support/users/michaelh/)
 * (@michaelh)
 * [15 years, 12 months ago](https://wordpress.org/support/topic/modifying-the-wordpress-index-template/#post-1505728)
 * Use a [conditional tag](http://codex.wordpress.org/Conditional_Tags) such as `
   is_home()` or `is_front_page()`
 *     ```
       <?php
       if (is_home()) {
       ?>
       this is text block to display on home page
       line two of text block
       <?php
       }
       ?>
       ```
   
 * Related:
    [Stepping Into Template Tags](http://codex.wordpress.org/Stepping_Into_Template_Tags)
   [Stepping Into Templates](http://codex.wordpress.org/Stepping_Into_Templates)
   [Template Hierarchy](http://codex.wordpress.org/Template_Hierarchy) [CSS](http://codex.wordpress.org/CSS)
   [WordPress Semantics](http://codex.wordpress.org/WordPress_Semantics)
 *  Thread Starter [monkeynuts84](https://wordpress.org/support/users/monkeynuts84/)
 * (@monkeynuts84)
 * [15 years, 12 months ago](https://wordpress.org/support/topic/modifying-the-wordpress-index-template/#post-1505804)
 * Thanks. I’ll give it a try.

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

The topic ‘Modifying the WordPress index template’ is closed to new replies.

## Tags

 * [pages](https://wordpress.org/support/topic-tag/pages/)

 * 2 replies
 * 2 participants
 * Last reply from: [monkeynuts84](https://wordpress.org/support/users/monkeynuts84/)
 * Last activity: [15 years, 12 months ago](https://wordpress.org/support/topic/modifying-the-wordpress-index-template/#post-1505804)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
