Let’s talk about Thesis 2 Templates. By now you have probably noticed that the rest of your site pages don’t match your home page. Below is a picture of a single post page from this site. Notice the differences between it and the home page pictured above. The nav menu is at the top of the page after we moved it, the Hello Bar is missing, and the post byline still includes date and edit link.
This is because all of our changes have been limited to the HTML “Home” Template (see picture below). Without realizing it, you have been working with Thesis 2 templates. All of our styles and tweaks to the HTML have been limited to the “Home” template.
I have purposely avoided this topic until this step, as it is faster and easier to get one template the way you want it, then copy it to the other templates as desired. Thesis 2 gives you many templates out-of-the-box.
You might have noticed that when you move your cursor over the word “Home”, it changes color.
This is a button you can click to change templates. Below you can see the available default templates.
Thesis 2 Templates:
- Home: this template controls the home page of your site. This is the only page where this template is used. This template is used when your home page displays your posts.
- Single: this template controls the single post page of your site. When a visitor clicks on one of your post titles they are take to a page where they can read the entire post. This is called the “single” page.
- Attachment: this template is used when you select the Attachment template for a page. This is a sub-category of Single.
- Page: this template is used when you add a WordPress Page to your site. An example is your “About” page.
- Front Page: this template is used when you select to use a static page as your home page.
- 404: this is a special template that is used when a site visitor receives a 404 error indicating that the page is not found.
- Archive: this is a special template used by the different WordPress taxonomy pages.
- Category: this template is used when a visitor is viewing a page of posts built from a WordPress Category. We added categories and select one for each post to be used in our nav menu.
- Tag: this template is used when a visitor is viewing a page of posts build from a WordPress Tag. Remember, tags work much the same as categories.
- Taxonomy: we will not be using this template.
- Author: this template is used when a visitor clicks on the author name in the post byline to view posts by a specific author.
- Day/Month/Year: if you display archives based on date, these templates will be used. I am not using date archives as I have chosen to build my URLs using the post name only.
- Search Results: this template is used whenever a visitor performs a search using the native WordPress Search function. We will not be using this as I plan to plug in Google Custom Search soon.
- Landing Page: this template is used when you create Posts or Pages using the Thesis Skin Custom Template, “Landing Page“. The Thesis Skin Custom Template drop-down for any custom templates you have created.
Copy from Template:
- This is an awesome function the creators of Thesis 2 have provided us to easily copy one template design to another. This is why we have concentrated on the Home template. Once the Home page is to our liking we can easily copy the layout to our other templates.
Switching Templates in Thesis 2:
- To switch templates, click on the current template name, such as Home, and a box will appear listing all of the available templates (see image above). Just click the template you want to work on next and it will be displayed.
I would like most of my pages to look the same so I am going to copy my Home template to the Single, Page, Category, Tag, 404, and Author templates. To do this, select the template you want to work on to make it active. In the picture below you will see that I have chosen to work on my Single template.
Click on the “Copy from Template” drop-down and select “Home”. Then click the green “Copy Template” button. Click the “OK” button when the confirmation pop-up appears.
Don’t forget to click the green “Save Template” button at the top right of the page.
Navigate to one of your single post pages and you’ll see that the page looks just like your home page now. Pretty awesome, right?
Go ahead and copy your Home template to your other templates as desired.
Another great feature of Thesis 2 is when you are signed into WordPress while viewing your site, Thesis will tell you what template is being used by the page being viewed. This is shown at the bottom left of the page. See the example below.