Build Your Own Business Website header image

Create a Magazine Style Blog Site with Thesis 2 – Part 17 – Create a Custom Template for a Single Category

Difficulty Level -

Filed Under Topics - ,

Listed Under Lesson Subjects -

Applies to -

Whoops, you've found some premium content!

Watch the opening clip of this video to preview it,
the full video is available to paid members.

Copy Default Archive Page to the Single Category Custom Template

Now that we have our default template set up, we’re going to come back over to templates and I’m going to create a new one and this will be Toddler Archive. Toddler Archive is going to get the Archive Template copied to it.

Modify the Single Category Custom Template to Reflect Existing Site Style

This is where we’re going to swap out those Home Header 2, Home Header 1 boxes so I’m going to shift drag them up here and come back down to text boxes. The first one is going to be Toddler Header 1, second one will be Toddler Header 2.

We’ll drag Header 1 into Column 1 and Header 2 into Column 2 then we’ll come back over here to the widgets and Todd Column 1, I don’t want that p tag. There’s no reason to have this image wrap in a p tag so I’m going to take it out. Let’s come back over to the skin editor and in Column 1, I’m going to paste the image.

Disable Automatic Paragraph Tags

I’m going to disable automatic p tags because I do not need this thing wrapped in paragraph tags. I’m also going to have no wrapper for this because again, it’s already inside of this Row 4 Column 2 wrapper and it doesn’t need to be wrapped again. It’s just an image so I don’t need additional wrappers for that. That was Header 1.

Remove Extraneous Widgets

Then we’ll come back over to widgets and let’s delete that one. Now we go back over here to Toddlers 2 and again, don’t copy the p tag, just the a, disable the p tags and no HTML wrapper. Let’s come back over here to the widgets, delete that widget then save this template.

Assign Template to Categories

We can’t see what it looks like yet because we haven’t assigned this template to anything, So we’ll come over here to our categories and we’ll go looking for our Toddler category. We are going to give each one of these a custom template. So we’ll come down here and the custom template we’re picking is Toddler Archive.

We’ll do that with all of the Toddlers so we’ll open all those up. Then scroll to the bottom, pick the Toddler Archive template, update and this is how that template then is assigned to these categories.

So now, every one of these Toddler categories or subcategories will have this Toddler Archive Template applied to them. In fact, if we view this, there it is, we’ve got our Toddlers and we’ve got our Orange here. Then we’ve got our Toddler Flu Symptoms and Toddlers Education posts showing up here.

Now, if we come over here and look at the actual Toddlers original landing page which is using the Todds template, they’ve got a menu here and they’ve got a different one of these sliders and since I deleted those widgets, we’ve now lost those to widgets up here.

Replace Header Content Lost When Widgets were Deleted

Actually, I think what I’m going to do is edit this template and this is going to be really simple because now all we have to do is open these up and drag those out of there and then come down here and find our new text box which was our Toddler Header 1 and Toddler Header 2. Okay, there’s Toddler Header 1 and Toddler Header 2, now if we save that template, now it looks like they want it to look.

Add Slider to the Page

Now, what we’ll do is go back over to that page and edit the page to make sure that we get the stuff out of here we want because this page it’s going to have this easyrotator. So we’ll copy it and then it’s going to have that menu.

Create Toddler Menu

Actually, while we’re here, why don’t we just go ahead and create the menu. So Appearance and Menus and we’ll create a Toddler menu.

Add Categories to the Menu

In the Toddler menu, what we’re really doing is we’re putting categories in here and in this case, that’s Child Care, Development, Education, Health and Potty Training. So we’re adding those to the menu and we’re saving it.

Add Feature Box to Archive Page

Then we’re going to come back over to our Toddler Archive Page and we’re going to put that Feature Box back in. Remember, it goes right above Column 1 so we’re going to shift drag Feature Box over there into Column 1 although it’s not going to use either of these two. Well, let’s see if that changes it, let’s save this template for a second, reload that, that didn’t go where I want it to go though.

I want to be on Toddler Archive and at the moment, I cannot get there from here because I don’t have a link to the Toddler Archive yet. So we’re just going to come down here to Toddler and view. Now, I have a link of it and at the moment, it has these two things in it. Now that I’ve refreshed this, I’m going to try to experiment, I believe I know the right answer to this experiment but I’m going to try it anyway.

Add WP Nav Menu and Slider to the Feature Box

Essentially, I’m going to try to choose a different menu here and have it work properly on this page, it does. Right, it’s still using the same one so that’s what I thought. What we have to do here with this is change the menu.

We’re going to drag Featured Posts Slider out of here and we’re going to drag the Home Menu out of here then we’re going to come down here and we’re going to create a WP Nav Menu and this will be Toddler Menu and we’re also going to create an Execute Shortcodes and this will be Toddler Featured Posts Slider.

So we’ll drag both of these into place, drop that in Feature Box and put it below. The Toddler Menu is going to have the class of secondary_menu, we’re picking the Toddler Menu and then the easyrotator code is this.

Now we’ve got our Feature Box, Featured Image and Headline. We’ll save this template so now, what I want to be is here. We’ve got our image up here, we’ve got our special menu and it almost makes sense maybe to not use the Archive Intro stuff. Let’s go look at their page again. They don’t have any additional information here so we’ll actually get rid of the Archive Intro stuff out of the archive.

0 Comments… add one

Save $200 on Membership Now!

Start learning today for as little as
$0.82 PER DAY!
Subscription Options
0 comments… add one

Leave a Comment