Skip to content

Allows to add taxonomy term classes to the body of content and user pages.

License

Notifications You must be signed in to change notification settings

backdrop-contrib/term_body_class

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Term Body Class

Term Body Class allows to add taxonomy term classes to the body element of content pages and user account pages.

Installation

Install this module using the official Backdrop CMS instructions at https://backdropcms.org/guide/modules.

Configuration

  • Visit the settings of a term reference field. For example, on a new Backdrop site, go to Administration > Structure > Content types > Post > Manage fields > Tags (admin/structure/types/manage/post/fields/field_tags).
  • Enable the option "Add as body class", and save the field settings. (The body class setting applies only to the field instance of this content type.)

Usage

  • Add a post with a taxonomy term, e.g. My term. As a result, the class tbc-my-term will be added to the body element of the HTML.

Issues

Bugs and Feature requests should be reported in the Issue Queue: https://github.com/backdrop-contrib/term_body_class/issues

Current Maintainers

Credits

License

This project is GPL v2 software. See the LICENSE.txt file in this directory for complete text.

About

Allows to add taxonomy term classes to the body of content and user pages.

Resources

License

Stars

Watchers

Forks

Packages

No packages published