theming

All posts tagged with: theming

Display one level only of a multi-level menu in Drupal

2022. Jun. 27. · 2 min read
Task: display the third level menu items of a four levels menu separately, without their children. Should be easy to set it using the admin UI of Drupal, right? Nowadays not, unfortunately!

Drupal Twig Template Structure of (Some) Form Elements

2020. Mar. 18. · 1 min read
I built a form with Webform module and checked Twig debug info.

I became a Certified Front End Specialist!

2019. Dec. 12. · 1 min read
It was a long-standing desire for me to take the Acquia front-end exam. And today I visited a testing centre and I successfully passed the exam!

JavaScript is Coming to Eat You

2019. Nov. 21. · 1 min read
I’ve just watched the video of Tim Broeker’s excellent talk from BADCamp 2019. And I think everyone who creates classic Drupal sites should see it!

How to use a third party JavaScript library in a Drupal theme?

2019. Jan. 2. · 1 min read
In a recent project I wanted to use the Tippy.js library in the custom Drupal 8 theme I was working on. While I knew most of the things needed to do this in theory I did not know how I should do it step by step in practice.

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.
← Prev
Page 1 of 2
Next →