Title: Changing header font/margin
Last modified: August 19, 2016

---

# Changing header font/margin

 *  [michaelfterry](https://wordpress.org/support/users/michaelfterry/)
 * (@michaelfterry)
 * [16 years, 7 months ago](https://wordpress.org/support/topic/changing-header-fontmargin/)
 * My website is <www.ugawaterpolo.com>
 * My front page is a static page, and all of my other posts publish on another 
   page I created called “Recent News.” I created a page.php because I wanted the
   date/publish information to be visible on posts, but not on pages.
 * I want to change the font size/style/margin for the pages, specifically the static
   front page, but not for the “news posts.”
 * I can’t figure out how to go about doing this. Any help will be greatly appreciated!
 * Michael

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

 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [16 years, 7 months ago](https://wordpress.org/support/topic/changing-header-fontmargin/#post-1255271)
 * Right now, it’s not possible to style your pages different to your posts as they
   both use identical classes. You’d need to add a unique class, or id, to the content
   area in your page template first and then style your page text content using 
   that class/id.
 *  Thread Starter [michaelfterry](https://wordpress.org/support/users/michaelfterry/)
 * (@michaelfterry)
 * [16 years, 7 months ago](https://wordpress.org/support/topic/changing-header-fontmargin/#post-1255275)
 * Could I just copy the current “class/id information” and rename it, then change
   the page text to that style?
 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [16 years, 7 months ago](https://wordpress.org/support/topic/changing-header-fontmargin/#post-1255284)
 * The best way to do it would be to change `class="post"` in page.php to something
   like:
 * `class="page<?php if( is_front_page()) echo ' home';?>"`
 * As far as I can tell, the .post class isn’t being used by the theme’s stylesheet,
   so there’s nothing you need to replicate at this point but you should then be
   able to use something like:
 * `.page {font-size:1.1em;}`
 * to increase the font size on Pages only. The `.home` class should also let you
   style the home page text content independently as well.
 *  Thread Starter [michaelfterry](https://wordpress.org/support/users/michaelfterry/)
 * (@michaelfterry)
 * [16 years, 7 months ago](https://wordpress.org/support/topic/changing-header-fontmargin/#post-1255290)
 * Where should I change this…on page.php??
 * Michael
 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [16 years, 7 months ago](https://wordpress.org/support/topic/changing-header-fontmargin/#post-1255293)
 * Yes – see above.

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

The topic ‘Changing header font/margin’ is closed to new replies.

## Tags

 * [change](https://wordpress.org/support/topic-tag/change/)
 * [font](https://wordpress.org/support/topic-tag/font/)
 * [page](https://wordpress.org/support/topic-tag/page/)
 * [posts](https://wordpress.org/support/topic-tag/posts/)
 * [stlye](https://wordpress.org/support/topic-tag/stlye/)

 * 5 replies
 * 2 participants
 * Last reply from: [esmi](https://wordpress.org/support/users/esmi/)
 * Last activity: [16 years, 7 months ago](https://wordpress.org/support/topic/changing-header-fontmargin/#post-1255293)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
