Vés al contingut
</calbasi.net>desenvolupament web
  • Inici
  • Serveis
  • Portfolio
  • Blog
  • Tutorials
  • Contacte

node type

HOWTO: Adding node type class to body element in Drupal 8

joan dj., 05/01/2017 - 21:41

Method 1: edit your html.html.twig theme template

Add this line at   <body{{ attributes.addClass(classes,:

    node_type ? 'page-node-type-' ~ node_type|clean_class

For example:

  • Llegeix més sobre HOWTO: Adding node type class to body element in Drupal 8
  • Afegeix un nou comentari
SubscribeSubscriu-te a node type
  • Catalan
  • English
  • Spanish

Cerca

Footer menu

  • Avís legal
  • Privacitat i protecció de dades
  • Ús de cookies
Design by Adaptivethemes.com