SMACSS

All posts tagged with: SMACSS

Drupal 8 Twig: add custom CSS classes to menus (based on menu name)

2016. Apr. 30. · 8 min read
Twig templates of Drupal 8 make our life much easier when we want to customize the HTML output. But when the goal is to change a Drupal 8 menu we have to use the menu.html.twig template which is not the most friendly one and it’s customization can be tricky because of several reasons. So I wanna show you how I did it.