Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add a 'largo_top_term_class' function/filter thing to add the top term's class to the post_class #1119

Closed
benlk opened this issue Feb 4, 2016 · 1 comment

Comments

@benlk
Copy link
Collaborator

benlk commented Feb 4, 2016

This would be really handy to have. Examples:

  • A post with the top term set to the tag with the slug 'deep-dive' would have the class top-term-tag-deep-dive added
  • A post with the top term set to the category 'finances-and-retributions' would have the class 'top-term-category-finances-and-retributions'

This would make it easier to style posts based on their top term.

https://codex.wordpress.org/Function_Reference/post_class

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants