1. Home
  2. Computing & Technology
  3. PHP / MySQL

Dissecting Wordpress part 1

By Angela Bradley, About.com

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.

Explore PHP / MySQL
About.com Special Features

Stay connected and entertained with reviews on tips on the latest HDTVs, cellphones and more. More >

Easy ways to connect two computers for networking purposes. More >

  1. Home
  2. Computing & Technology
  3. PHP / MySQL
  4. Tools & Resoruces
  5. Blogs
  6. Wordpress Files - Wordpress Header Footer and Sidebar

©2009 About.com, a part of The New York Times Company.

All rights reserved.