Adding a banner to a single page in WordPress

This tutorial explains how to add a banner to a single page or set of pages in WordPress. This is particularly useful for those that have the desire to display a specific banner on a per page basis. For example, you might want one page to present a banner but do not want the banner to appear on your whole site. This can easily be accomplished in just a few steps, so let's get started.

How To Add a Banner to a Single WordPress Page

  1. First, access your site via ftp and get a copy of your page.php (the file is located in the /wp-content/themes/your-theme directory)
  2. Open page.php using a text editor (I prefer Crimson Editor it's free) and add the following code to the top of the file:
    /* Template Name: Page Two */


  3. Add your banner code to the very top of the file and then save the file as page2.php and upload it to your /wp-content/themes/your-theme directory
  4. Log into the WordPress admin panel and select Manage -> Pages from the menu
  5. From the list, select a page you would like to add the custom banner page to, then click edit
  6. Under Advanced Options, you should see the Page Template dropdown menu. Select Page Two from the menu and then click the save button.

Now simply go view the page that you have just edited and you should see the new banner applied to that page. You can repeat this process multiple times to have different features available for specific pages