---
title: Add CSS to Your Related Posts
description: "In [PublishPress Taxonomies](https://publishpress.com/links/taxonomies) you can [change the format of your Related Posts](https://publishpress.com/knowledge-base/format-related-posts/). You can also add your CSS to the display of your related posts. Go to Taxonomies > Related Posts > Advanced and you can add your CSS to…"
url: "https://publishpress.com/knowledge-base/add-css-related-posts/"
updated: "2026-10-12"
category: "PublishPress Taxonomies / Taxonomies: Related Posts"
---

# Add CSS to Your Related Posts

In [PublishPress Taxonomies](https://publishpress.com/links/taxonomies) you can [change the format of your Related Posts](https://publishpress.com/knowledge-base/format-related-posts/). You can also add your CSS to the display of your related posts.

Go to Taxonomies > Related Posts > Advanced and you can add your CSS to the whole div or to specific links. You can do this using the settings below:

![Related Posts div class](https://publishpress.com/wp-content/uploads/2021/09/related-posts-css-1024x244.png)

Here is an example of adding classes to these fields:

![Related posts div class with entry](https://publishpress.com/wp-content/uploads/2021/09/related-classes-1024x221.png)

You can then add the CSS for those classes to my theme, or to the "Customize" feature of WordPress.

![CSS to modify Related Posts](https://publishpress.com/wp-content/uploads/2021/09/terms-display-css-1.png)

In this example below, we've added the CSS code from above, and then [loaded Related Posts with a widget](https://taxopress.com/docs/where-to-display-related-posts/). The result is very colorful!

![Related Posts with CSS](https://publishpress.com/wp-content/uploads/2021/09/related-css.png)
