• For a long time I was trying to figure out how to add category descriptions to not only the top of the category pages, but also to the bottom as well. There seemed to be no solution to this, so I opted for a somewhat crude option.

    Since I turned off auto updates for my theme, I decided to just shove my category descriptions into the bottom of the category.php theme file. This works fine EXCEPT for the fact that it adds that description to all category pages.

    So, what I am wondering is: Is there a way to constrain the text I’ve added to my category.php file to only a specific category page? Something along the lines of displaying that text only if its a certain category-id# or something like that?

Viewing 1 replies (of 1 total)
  • Hi there. Most themes place one or more classes related to the category in the <body> tag; like “category-cats” for the slug and “category-15” for the category id. You could use those classes to control the display of your text.

Viewing 1 replies (of 1 total)
  • The topic ‘Question About Messing With Category Pages’ is closed to new replies.