1. Computing & Technology

Discuss in my forum

Dissecting Wordpress part 1

By , About.com Guide

See More About:

1 of 3

Header.php
The first file we are looking at is the header.php file. This file can be found in the /wp-content/themes/YourTheme folder. This is one of the files that controls how your blog will look. The top of this file is filled with regular HTML. It includes all the header information like the page title and the stylesheet information. It also includes the top code of the body. This code usually includes the banner with the page title, and some navigation at the top of the page.

If you want to edit how the top of the page looks, or add any custom meta tags (for search engine optimization) this is the file you want to edit. There is some PHP in this file however most of it is HTML. This will be the header for every page so if you change the meta information you might want to keep it dynamic so it better adapts to the different pages of your blog.

Also remember that any changes you make to this file only apply to the theme who's folder you are working in. If you change themes, these changes will no longer be applied.

©2012 About.com. All rights reserved.

A part of The New York Times Company.