More body classes: front page and content type

Created on 19 June 2019, about 6 years ago
Updated 19 July 2025, 30 days ago

Suggestion: add more classes in body

  • is it the frontpage?
  • what content type

In the html.html.twig template after
64 (not sidebar_first and not sidebar_second) ? 'no-sidebar'
I add a comma and the following:

node_type ? 'node--type-' ~ node_type|clean_class,
not root_path ? 'path-frontpage' : 'path-' ~ root_path|clean_class

Thanks

✨ Feature request
Status

Needs review

Version

3.0

Component

Code

Created by

πŸ‡ΈπŸ‡ͺSweden hstrindb

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024