theming

By Arun AK, 5 November, 2019

Sometimes you may need to alter a template that is provided by a module. Usually, you will be able to override the template by copy it into your themes template directory.

But in a case such as Drupal multi-site setup with a single code base and shared the theme, it is difficult to alter template specifically for a particular website. Then if you are doing it using a module you will be able to achieve for a particular website.

The hook hook_theme_registry_alter() will help to alter the template path for a particular theme function.

By Arun AK, 3 June, 2017

Twig is a flexible template engine for PHP. In Drupal Twig is using as default template engine. Twig is flexible, fast, and secure. Here we are going to discuss how we can integrate twig in Drupal 8. We will go through how to use twig template and how we can add new template for a block.

By Arun AK, 21 May, 2017

It has been three years since Drupal 8 is released. Even Drupal community has providing seamless support through forum and other resources(eg: IRC) still people are struggling during D8 development. So I'm sharing my D8 development experience here.

Majority will agree that most difficult part in Drupal development is theming. As Drupal is rendering html with its own containers and attributes achieving the exact design provided by UI developers in Drupal feels like a challenge to the developers.