I need to add some ( image or texts ) on top of one of my categories

I thought about editing category.php, but it affects all the categories

How can I insert various static data on each category?


I'm using the twentyfourteen theme

  • This is off topic as its a theme customization question and not specific to WordPress. Commented Nov 12, 2014 at 13:34
  • What theme are you using? Commented Nov 12, 2014 at 13:58
  • i use twentyfourteen theme , but i change a graphic of theme by myself
    – Arioman
    Commented Nov 13, 2014 at 7:29
  • Sorry, only saw your update now. Please see my update Commented Nov 14, 2014 at 10:11

1 Answer 1


Just a note to potential downvoters and close voters, even though this question by itself is on topic, the reason that this being a core theme, make this even more on topic


As you are making use of the twentyfourteen theme, you have to remember this one golden rule ( and this applies to all themes and plugins that you are not the author of ), you should not make changes to the theme ( or plugin or core files ) directly. You should create a child theme. The page in the link actually handles this part perfectly as it specifically targets the twentyfourteen theme


You can solve this by creating a category template specific to the category you want to target

Have a look at the Template Hierarchy. Let's imagine you have a category with a slug one and you need to only add your box to this category, you can create a template called category-one.php

Now, whenever the one category is selected, category-one.php will be used. Any other category will use the normal category.php template

Alternatively, you can wrap your function with a is_category( 'one' ) conditional statement when adding your box. This will make sure that only category one is targeted

  • Down vote for answering off topic questions. Commented Nov 12, 2014 at 13:35
  • You must really really be joking me. Have you actually read my answer and also read and understood the OP Commented Nov 12, 2014 at 13:56
  • 1
    @goose I'm being really really really honest and open about why i down voted your answer to a off topic question. If he's the theme Developer then it would be o.k but as a user of the theme, he should use the theme Developers forums for theme customization questions. Please do not encourage answers to off topic questions purely to gain reputation points. Commented Nov 12, 2014 at 14:04
  • 1
    Thanks for your honesty, but I really don't see how is this theme specific, even if the theme is not his own Commented Nov 12, 2014 at 14:06
  • thanks so much both of you for Take a time here and comment , I think @Goosen mentioned a very useful tips for what i ask and i will check it very soon @BradDalton if you see my profile you will understand that i cant give reputation to anyone cause im new , and maybe my Question is not about Wordpress developing but this Question maybe comes for many users and it think its not fully off topic Do you think theme Developers waste a time and answer my Question before i buy theirs themes ? it`s a joke, they never help till you buy something from them , so for free themes we are by our own !
    – Arioman
    Commented Nov 12, 2014 at 15:39

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.