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

Closed. This question is off-topic. It is not currently accepting answers.Your question should be specific to WordPress.

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!

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1744341609a4569434.html

相关推荐

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

    Closed. This question is off-topic. It is not currently accepting answers.Your question should be specific to WordPress.

    7天前
    30

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信