Title: WordPress page.php customization
Last modified: August 19, 2016

---

# WordPress page.php customization

 *  [bign](https://wordpress.org/support/users/bign/)
 * (@bign)
 * [15 years, 12 months ago](https://wordpress.org/support/topic/wordpress-pagephp-customization/)
 * Hi,
    I am creating a blog with WordPress. The blog has completely different layout
   from static page’s. Meaning that even the header and footer are different. Therefore
   I moved the header and footer code into page.php, and remove <?php get_header();?
   > <?php get_footer(); ?>. Until here everything works fine …. except …. in the
   <div class=”entry”> where the text of the post should be shown, only the 1st 
   character of the 1st word is shown. When I roll back and use <?php get_header();?
   > <?php get_footer(); ?> the text of the post is showing fine. What am I missing??????

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

 *  [stvwlf](https://wordpress.org/support/users/stvwlf/)
 * (@stvwlf)
 * [15 years, 12 months ago](https://wordpress.org/support/topic/wordpress-pagephp-customization/#post-1545771)
 * Try this approach. Take the header and footer code out of page.php. Change header.
   php to
 *     ```
       <?php
       if ( is_home() ) {  // blog page
         include (TEMPLATEPATH . '/header_blog.php');
       } else {
         include (TEMPLATEPATH . '/header_static.php');
       }
       ?>
       ```
   
 * Create the two files header_blog.php and header_static.php. Put the appropriate
   header code in each file.
 * Use the same technique for footer.php
 *  Thread Starter [bign](https://wordpress.org/support/users/bign/)
 * (@bign)
 * [15 years, 11 months ago](https://wordpress.org/support/topic/wordpress-pagephp-customization/#post-1546038)
 * Thanks, I like this approach.

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

The topic ‘WordPress page.php customization’ is closed to new replies.

## Tags

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

 * 2 replies
 * 2 participants
 * Last reply from: [bign](https://wordpress.org/support/users/bign/)
 * Last activity: [15 years, 11 months ago](https://wordpress.org/support/topic/wordpress-pagephp-customization/#post-1546038)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
