Title: Adding and customizing a category template
Published: 5 April 2024
Last modified: 17 September 2024

---

[Home](https://learn.wordpress.org)[Courses](https://learn.wordpress.org/courses/)
[Intermediate WordPress User](https://learn.wordpress.org/course/intermediate-wordpress-user/)
Adding and customizing a category template

 [ Exit Course ](https://learn.wordpress.org/course/intermediate-wordpress-user/)

 1.   a.  [   User management  ](https://learn.wordpress.org/lesson/user-management/) 
         [Preview](https://learn.wordpress.org/lesson/user-management/)
 2.   1 lesson
 3.   a.  [   Migrating your site Part 1: Changing to a new host and domain  ](https://learn.wordpress.org/lesson/migrating-your-site-part-1-changing-to-a-new-host-and-domain/)
         [Preview](https://learn.wordpress.org/lesson/migrating-your-site-part-1-changing-to-a-new-host-and-domain/)
      b.  [   Migrating your site Part 2: Changing your host but keeping your domain  ](https://learn.wordpress.org/lesson/migrating-your-site-part-2-changing-your-host-but-keeping-your-domain/)
         [Preview](https://learn.wordpress.org/lesson/migrating-your-site-part-2-changing-your-host-but-keeping-your-domain/)
 4.   2 lessons, 2 quizzes
 5.   a.  [   Differentiating between homepage display settings and various templates  ](https://learn.wordpress.org/lesson/differentiating-between-homepage-display-settings-and-various-templates/)
         [Preview](https://learn.wordpress.org/lesson/differentiating-between-homepage-display-settings-and-various-templates/)
      b.  [   Personalizing your 404 template  ](https://learn.wordpress.org/lesson/personalizing-your-404-template/)
         [Preview](https://learn.wordpress.org/lesson/personalizing-your-404-template/)
      c.  [   Customizing the search results template  ](https://learn.wordpress.org/lesson/customizing-the-search-results-template/)
         [Preview](https://learn.wordpress.org/lesson/customizing-the-search-results-template/)
      d.  [   Customizing your single posts template  ](https://learn.wordpress.org/lesson/customizing-your-single-posts-template/)
         [Preview](https://learn.wordpress.org/lesson/customizing-your-single-posts-template/)
      e.  [   Creating a custom template  ](https://learn.wordpress.org/lesson/creating-a-custom-template/)
         [Preview](https://learn.wordpress.org/lesson/creating-a-custom-template/)
      f.  [   Adding and customizing a category template  ](https://learn.wordpress.org/lesson/adding-and-customizing-category-template/)
         [Preview](https://learn.wordpress.org/lesson/adding-and-customizing-category-template/)
      g.  [   Styling your site with Global Styles  ](https://learn.wordpress.org/lesson/styling-your-site-with-global-styles/)
         [Preview](https://learn.wordpress.org/lesson/styling-your-site-with-global-styles/)
      h.  [   Using the Style Book  ](https://learn.wordpress.org/lesson/using-the-style-book/)
         [Preview](https://learn.wordpress.org/lesson/using-the-style-book/)
 6.   8 lessons, 4 quizzes
 7.   a.   [   Taking advantage of query loops  ](https://learn.wordpress.org/lesson/taking-advantage-of-query-loops-2/)
          [Preview](https://learn.wordpress.org/lesson/taking-advantage-of-query-loops-2/)
      b.   [   Using the Comments block  ](https://learn.wordpress.org/lesson/using-the-comments-block/)
          [Preview](https://learn.wordpress.org/lesson/using-the-comments-block/)
      c.   [   Designing with the Columns block  ](https://learn.wordpress.org/lesson/designing-with-the-columns-block/)
          [Preview](https://learn.wordpress.org/lesson/designing-with-the-columns-block/)
      d.   [   Using the Group block  ](https://learn.wordpress.org/lesson/using-the-group-block/)
          [Preview](https://learn.wordpress.org/lesson/using-the-group-block/)
      e.   [   Designing with Row and Stack blocks  ](https://learn.wordpress.org/lesson/designing-with-row-and-stack-blocks/)
          [Preview](https://learn.wordpress.org/lesson/designing-with-row-and-stack-blocks/)
      f.   [   Uncovering the Cover block  ](https://learn.wordpress.org/lesson/uncovering-the-cover-block/)
          [Preview](https://learn.wordpress.org/lesson/uncovering-the-cover-block/)
      g.   [   Advanced WordPress block layouts  ](https://learn.wordpress.org/lesson/advanced-wordpress-block-layouts/)
          [Preview](https://learn.wordpress.org/lesson/advanced-wordpress-block-layouts/)
      h.   [   Building a page with only patterns  ](https://learn.wordpress.org/lesson/building-a-page-with-only-patterns/)
          [Preview](https://learn.wordpress.org/lesson/building-a-page-with-only-patterns/)
      i.   [   Creating your own custom synced and non-synced patterns  ](https://learn.wordpress.org/lesson/creating-your-own-custom-synced-and-non-synced-patterns/)
          [Preview](https://learn.wordpress.org/lesson/creating-your-own-custom-synced-and-non-synced-patterns/)
      j.   [   Organizing your Media Library  ](https://learn.wordpress.org/lesson/organizing-your-media-library/)
          [Preview](https://learn.wordpress.org/lesson/organizing-your-media-library/)
 8.   10 lessons, 4 quizzes
 9.   a.  [   SEO strategies  ](https://learn.wordpress.org/lesson/seo-strategies/) [Preview](https://learn.wordpress.org/lesson/seo-strategies/)
      b.  [   What is accessibility, and why is it important?  ](https://learn.wordpress.org/lesson/what-is-accessiblity-and-why-is-it-important/)
         [Preview](https://learn.wordpress.org/lesson/what-is-accessiblity-and-why-is-it-important/)
      c.  [   Testing your content for accessibility  ](https://learn.wordpress.org/lesson/testing-your-content-for-accessibility/)
         [Preview](https://learn.wordpress.org/lesson/testing-your-content-for-accessibility/)
 10.  3 lessons, 2 quizzes
 11.  a.  [   Tools: Export and Import  ](https://learn.wordpress.org/lesson/tools-export-and-import/)
         [Preview](https://learn.wordpress.org/lesson/tools-export-and-import/)
      b.  [   Tools: Site Health  ](https://learn.wordpress.org/lesson/tools-site-health/)
         [Preview](https://learn.wordpress.org/lesson/tools-site-health/)
 12.  2 lessons, 1 quiz
 13.  a.  [   Managing Settings: General  ](https://learn.wordpress.org/lesson/managing-settings-general-2/)
         [Preview](https://learn.wordpress.org/lesson/managing-settings-general-2/)
      b.  [   Managing Settings: Writing  ](https://learn.wordpress.org/lesson/managing-settings-writing-2/)
         [Preview](https://learn.wordpress.org/lesson/managing-settings-writing-2/)
      c.  [   Managing Settings: Reading  ](https://learn.wordpress.org/lesson/managing-settings-reading-2/)
         [Preview](https://learn.wordpress.org/lesson/managing-settings-reading-2/)
      d.  [   Managing Settings: Discussion  ](https://learn.wordpress.org/lesson/managin-settings-discussion/)
         [Preview](https://learn.wordpress.org/lesson/managin-settings-discussion/)
      e.  [   Managing Settings: Media  ](https://learn.wordpress.org/lesson/managing-settings-media/)
         [Preview](https://learn.wordpress.org/lesson/managing-settings-media/)
      f.  [   Managing Settings: Permalinks  ](https://learn.wordpress.org/lesson/managing-settings-permalinks/)
         [Preview](https://learn.wordpress.org/lesson/managing-settings-permalinks/)
      g.  [   Managing Settings: Privacy Policy  ](https://learn.wordpress.org/lesson/managing-settings-privacy-policy/)
         [Preview](https://learn.wordpress.org/lesson/managing-settings-privacy-policy/)
 14.  7 lessons, 2 quizzes
 15.  a.  [   Website optimization  ](https://learn.wordpress.org/lesson/website-optimization/)
         [Preview](https://learn.wordpress.org/lesson/website-optimization/)
      b.  [   Image optimization  ](https://learn.wordpress.org/lesson/image-optimization/)
         [Preview](https://learn.wordpress.org/lesson/image-optimization/)
 16.  2 lessons, 2 quizzes
 17.  a.  [   Domain management: Understanding DNS records  ](https://learn.wordpress.org/lesson/domain-management-understanding-dns-records/)
         [Preview](https://learn.wordpress.org/lesson/domain-management-understanding-dns-records/)
 18.  1 lesson, 1 quiz
 19.  a.  [   Essential security plugin features and settings  ](https://learn.wordpress.org/lesson/essential-security-plugin-features-and-settings/)
         [Preview](https://learn.wordpress.org/lesson/essential-security-plugin-features-and-settings/)
 20.  1 lesson

### Customization

# Adding and customizing a category template

## Transcript

### All archives versus category template

In this lesson, we will explore adding and customizing a category template. In the
previous lesson, we learned all about the various templates available. We mentioned
that the All Archives template is the default template WordPress uses to display
smaller groupings of posts, such as categories, tags, authors, dates, etc. Please
note I am using the Twenty Twenty-Four default theme. Scrolling down will show how
the All Archives template is currently structured and how posts within an archive
will appear on the front end. When I visit one of my blog posts and click on the
relevant category, in this case, Art, I can view all my posts labeled with the Art
category.

The structure for this page has been dictated by the All Archives template. As mentioned,
all other categories and groupings of archives will display in the same way due 
to the fact that they have been assigned to the All Archives template. This is where
creating a custom category template comes into play. Instead of using the generic
archive template, you can design one that suits your specific needs. Let’s see this
in action.

### Adding a category template

I will go ahead and add a category template to change the display of posts within
the Art category. So, I will make my way to templates and click on the plus icon
or the Inserter next to templates. Then, I will add a category archives template.
Now you have two choices. Firstly, you can create a single template for all your
categories. You may also decide to create a template for each specific category.
I will select the second option as I want to create a specific template for the 
Art category. Once selected, I can choose a pattern that comes with the Twenty Twenty-
Four theme. But I will go ahead and select Skip to start blank.

### Customizing a category template

Now, I can start building my blank template. The first thing I will add is my new
header – which I have already created and named Art Header. Once the unique header
has been added to the template, I can click on the three vertical dots and select
Add After. Next, we are going to add the Query Loop block. In this case, it will
display all the Art posts. Now, we can go ahead and select a pattern for how we 
want the posts to display. And once the pattern has been added, we can modify it
even further. So, let’s go ahead and open up the List view. Then, look at all the
nested blocks within the Query Loop block. We are after the Post Template block.
When we select the Post Template block, we will see three columns. We can change
that to four. But in this example, we will settle for two columns.

Next, I want to delete my Post Excerpt block. So click on one of the posts, select
the Post Excerpt block, click on the three vertical dots, scroll down to the bottom,
and select Delete. Then, I will select the Group block and add more padding around
the content. So I’ll open up my Styles, go to padding, and add more padding on the
left and right. You are welcome to make further modifications, but for this example,
I am done. So, the next step is to add a footer. I will also add the general footer
that I’ve used on my other templates. Now, we can go ahead and see what our Art 
category will look like from the front end. So, if we select the relevant category
now, namely Art, we will see the archives page for the Art category, with a unique
header and modified content layout. This was, of course, achieved by adding and 
changing a category template for a specific item.

### Conclusion

If you want to create a new template for a different category, you can click on 
the plus icon next to templates, select category archives, and then a category for
a specific item. Then, I can create a unique template for my lifestyle or sports
category. I trust you now feel comfortable adding a category template for all categories
or a specific category.

 This is a preview lesson

Register or sign in to take this lesson.

 [ Take course ](https://learn.wordpress.org/course/intermediate-wordpress-user/)

 [ Sign in ](https://login.wordpress.org/?redirect_to=https%3A%2F%2Flearn.wordpress.org%2Flesson%2Fadding-and-customizing-category-template%2F&locale=en_US)

##  Suggestions

 Found a typo, grammar error or outdated screenshot? [Contact us](https://learn.wordpress.org/report-content-feedback/).