Adding Text to Your Home Page

Posted on Friday, September 16th, 2011 at 10:13 am in

So you want to edit your site’s home page but it doesn’t show up under Pages?

Assuming that your site’s front page shows a list of your most recent posts, it is not created in the same way as the other static Pages on your site. It is actually an archive page (which, in WordPress-speak, is a list of posts)and is generated “on demand”. So you cannot just go in and “edit” the page in the same the way that you can edit any of the other static Pages that you’ve created.

If you simply want to change the title of the Page in your site’s navigation menu, try creating a custom menu. This give you full control and allow you to change the page’s label in the menu.

If you want to hide the page’s title, you can use CSS to move the page title off the viewable page. The exact CSS you will use will vary according to your theme but will probably look something like:


#header h1 {
	position:absolute;
	top:-9999px;
	left:-9999px;
}

If you want to add some text to the page, you have three basic options:

  1. Edit your theme’s index.php template file and add your text — complete with HTML markup — to the template file before or after The Loop.
  2. Create a widget-aware area in your theme’s index.php template file, then use a Text widget to add your new content.
  3. Configure your site to use a static front page.

If you decide to use options 1 or 2, remember to create a child theme first and add your customised template file to your child theme rather than amending the original parent. This will protect your customisations if/when you update the parent theme at a later date. This is particularly important if you are using the WordPress default theme as having access to an unedited version of the theme is vital when dealing with a range of site issues.

WordPress Installation and Set Up

Top