Training session on Drupal 8 Theming
BLOG

Training session on Drupal 8 Theming

author By Nilanjana Mar 10, 2016
training-session-drupal-8-theming
Submit guest post
Evolving Web organised a Drupal 8 Theming session on the first day of DrupalCon Asia. Manjit Singh and I had the privilege of being mentors for this session.  
 

The session started with the fundamentals of theming since all participants had some knowledge of sitebuilding in Drupal, CSS, HTML and JS. Here is a compilation of some of the topics we covered.

 

Recommended dev environments

  • A Drupal 8 Fresh Install: If you don’t have a running Web Server Environment with a Drupal 8 install, you can just install Acquia Dev Desktop 2.
  • A SASS compiler: Although it is not a “requirement” for building a theme, it is a strongly suggested practice for keeping the theme project simplified. SASS has been trending recently and empowers Drupal Theming in an amazing way. You can easily download it before you start. 
  • Text Editor: Atom is a very powerful open source tool for coding developed by GitHub, which is also pretty easy to download. You should also get the Atom Twig Plugin.
 

The Objective

The participants were working to build a theme from the fresh installation.

 traning1
 

Some core code examples were shown in the training to describe how the theme settings works. For example, in the Drupal installation folder, locate the Bartik theme (core/themes/bartik).then In the Bartik theme, open templates/block–system-branding-block.html.twig. Go to line 18 to find the code that displays the logo. The line

Discussion

Write to us

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms Of Service apply. By submitting this form, you agree to our Privacy Policy.

See how our uniquely collaborative work style, can help you redesign your business.

Contact us