How to Create a New Thesis Template
- 1). Open your Notepad program and create a new document. You can leave it blank, or code it as you see fit, and save it as home.php. Make sure to change the file type from .txt to .php when you save it. After the file has been created, upload it to your site under the folder: /wp-content/themes/thesis_16/custom/.
- 2). Find the "custom-functions.php" file, which should also be in the same folder, and open it with Notepad. Then copy and paste the following code at the bottom of the file:
// Remove Default Page Template
remove_action('thesis_hook_custom_template', 'thesis_custom_template_sample');
// Custom Page Template
function custom_homepage() {
if ( is_front_page() ) {
include (TEMPLATEPATH . '/custom/home.php');
}
}
add_action('thesis_hook_custom_template', 'custom_homepage'); - 3). Log on to your Wordpress Dashboard. On the left, there is a menu with several headings. Under the "Pages" heading, there is a link labeled "Add New." Click that link.
- 4). Type "Homepage" in the text box underneath the new page's "Add New Page" heading. On the right, you should see a box labeled "Attributes" with a "Template" subheading inside it. Click on the dropdown box below the "Template" subheading until you see a choice that says, "Custom Template." Select it.
- 5). Now click "Settings" on the left menu. Click "Reading" in the sub-menu. When the page loads, click the bubble next to "A static page." Then, below it, change the Front Page dropdown box to "Homepage." This will change your Wordpress format from a blog to a static home page, like a normal website. Click "Save changes" at the bottom. Your custom Thesis template has been created, and you can change it at any time, just by entering new code into the home.php file.