Title: custom category template
Last modified: August 19, 2016

---

# custom category template

 *  [meninagui](https://wordpress.org/support/users/meninagui/)
 * (@meninagui)
 * [15 years, 7 months ago](https://wordpress.org/support/topic/custom-category-template-2/)
 * I want that my site menu change color by category in category pages and that 
   a category logo appear as title instead of the site logo. For this to happen 
   I should change the code from the menu (that is in header.php and the styling
   in style.css of course).
    How can I achieve this? Can I simple copy the code 
   from the header.php to the category templatefile and modify it?

Viewing 1 replies (of 1 total)

 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [15 years, 7 months ago](https://wordpress.org/support/topic/custom-category-template-2/#post-1705840)
 * > Can I simple copy the code from the header.php to the category templatefile
   > and modify it?
 * No. You would need to apply different styles based on the current category. This
   would be simpler if you used the [body_class](http://codex.wordpress.org/Template_Tags/body_class)
   in your theme’s header.php file.

Viewing 1 replies (of 1 total)

The topic ‘custom category template’ is closed to new replies.

## Tags

 * [category](https://wordpress.org/support/topic-tag/category/)
 * [menu](https://wordpress.org/support/topic-tag/menu/)
 * [template](https://wordpress.org/support/topic-tag/template/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 2 participants
 * Last reply from: [esmi](https://wordpress.org/support/users/esmi/)
 * Last activity: [15 years, 7 months ago](https://wordpress.org/support/topic/custom-category-template-2/#post-1705840)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
