Problem/Motivation

in my body classes doesn't appear the node type, even if in the html.html.twig we have

{%
  set body_classes = [
    logged_in ? 'user-logged-in',
    not root_path ? 'path-frontpage' : 'path-' ~ root_path|clean_class,
    node_type ? 'page-node-type-' ~ node_type|clean_class,

Steps to reproduce

install, make manually a new subtheme.
Drupal Version 8.9.13

I have no code in my SUBTHEMENAME.theme template file.

There's anything I can try to use the node type as class selector?

Comments

frazac created an issue. See original summary.

frazac’s picture

Issue summary: View changes
vladimiraus’s picture

Status: Active » Postponed (maintainer needs more info)

I went to node page and I can see

<body class="toolbar-icon-9 toolbar-tray-open toolbar-horizontal toolbar-fixed user-logged-in path-node page-node-type-fqmovie bg- d-flex flex-column h-100" style="padding-top: 79px;">

Can you

  • provide the URL of the page you are visiting
  • provide classes in body tag you can see
  • did you override html.html.twig ?
vladimiraus’s picture

Version: 2.1.6 » 2.1.x-dev
Status: Postponed (maintainer needs more info) » Closed (cannot reproduce)

Closed due to inactivity