I’d like to have single posts of a particular category look a certain way, That doesn’t seem to be an option under add new template. (Gutenberg)

[ad_1]

I just want to have the heading look different if it’s a blog post. The post h1 doesn’t have an id and the only class applies to all posts not category and I don’t see anywhere else to add classes or id’s.

[ad_2]
1 Comment
  1. Duplicate your category.php template and name it category-xxxx.php where xxxx is the slug of the category you’re wanting to use e.g. If your Cats category’s slug is ‘cats’, you’d name the new template category-cats.php. Now in your new template you can add whatever code you like.

    https://codex.wordpress.org/Category_Templates

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer