Title: Changing &#8216;content&#8217; css rules
Last modified: May 18, 2018

---

# Changing ‘content’ css rules

 *  [willwazoku](https://wordpress.org/support/users/willwazoku/)
 * (@willwazoku)
 * [7 years, 10 months ago](https://wordpress.org/support/topic/changing-content-css-rules/)
 * In the link attached, each card is pulled through automatically by the theme,
   creating a “resources” section. The text preview and read more link is pulled
   through by default.
 * We have four categories within this section, and “read more” is pulled in for
   each category. I was thinking, is there a way to customise the preview text and
   link that is pulled based on category?
 * The code is currently as follows:
 * .tax-portfolio-category .entry-thumb: before {
    content: “Read more”;
 * Can I set this to change dependent on our four categories (Case Studies, White
   Papers & Reports, Videos & Webinars and Guides)
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fchanging-content-css-rules%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 1 replies (of 1 total)

 *  Moderator [t-p](https://wordpress.org/support/users/t-p/)
 * (@t-p)
 * [7 years, 10 months ago](https://wordpress.org/support/topic/changing-content-css-rules/#post-10296146)
 * Please identify exactly which theme you are using and then post in that theme’s
   dedicated forum via its page in the [Theme Repository](https://wordpress.org/themes/).
 * For pro or commercial product support please contact the author directly on their
   site. They cannot support their customers here. As the author is aware, commercial
   products are [not supported in these forums](https://make.wordpress.org/support/handbook/forum-welcome/#do-not-post-about-commercial-products).

Viewing 1 replies (of 1 total)

The topic ‘Changing ‘content’ css rules’ is closed to new replies.

## Tags

 * [css](https://wordpress.org/support/topic-tag/css/)
 * [editing templates](https://wordpress.org/support/topic-tag/editing-templates/)
 * [formatting](https://wordpress.org/support/topic-tag/formatting/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 2 participants
 * Last reply from: [t-p](https://wordpress.org/support/users/t-p/)
 * Last activity: [7 years, 10 months ago](https://wordpress.org/support/topic/changing-content-css-rules/#post-10296146)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
