最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

categories - Add CSS class to a category on frontpage (PHP)?

programmeradmin3浏览0评论
Closed. This question is off-topic. It is not currently accepting answers.

Your question should be specific to WordPress. Generic PHP/JS/SQL/HTML/CSS questions might be better asked at Stack Overflow or another appropriate Stack Exchange network site. Third-party plugins and themes are off-topic for this site; they are better asked about at their developers' support routes.

Closed 8 days ago.

Improve this question

I am currently working on creating a news page. On the main page the news of all possible categories are listed. However, I would like to display the link color of a specific category in a different color. However, I do not have access to the individual categories via CSS. I can only address the link color of all entries in this block as normal.

The goal is to display the link color of e.g. Plus content in a different color in the overview.

I have already tried various code snippets from here that add a CSS class to the categories, but none of them work the way I want them to. They only worked on the respective category page, but not on the start page.

I use the Jannah theme.

Does anyone have any idea or is this even possible?

Thank you very much!

发布评论

评论列表(0)

  1. 暂无评论