No classes on the body

Created on 27 June 2023, over 1 year ago
Updated 7 July 2023, over 1 year ago

Problem/Motivation

I started my site and wanted to hide h1 tag on a section on the front page and never thought it was a thing. Usually I would target a path-frontpage class on the body and hide the page title. I inspected the page and found <body> without a single helper class on it.

Proposed resolution

Theme needs to make some preprocess to get across some helper classes like path-frontpage, the id of the page like page-node-14, the entity type like node--type-page to the body tag.

These help in site building and most site builders would expect these without asking.

Feature request
Status

Fixed

Version

5.0

Component

Code

Created by

🇳🇬Nigeria chike Nigeria

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

Comments & Activities

Production build 0.71.5 2024