¡Hello! I’m trying to modify the font settings for the post titles, only for a specific category. I would need to be able to define a style (including font, size, color, etc) that I can apply to certain category (of if that’s not possible, to certain posts).
¡Thank you!
Hi Ariel,
The slug of a category that the post is part of is added as an HTML class at the beginning of the post. You can use that inside a CSS code and select the category in question and change the title properties.
Please kindly add the CSS code below to X/Pro > theme Options > CSS:
.category-slug .entry-title {
font-size: 25px;
color: #aa00aa;
font-family: lato, sans-serif;
}
Please change
slugwith the slug of the category that you want. Feel free to change the other values of the font itself, size, and color.
kindly get back to us with the result of the steps above and URL/User/Pass of your WordPress dashboard using the Secure Note functionality of the post to follow up the case if you still have problems.
Thank you.
This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.
