Advertisement

Theming Your Site Part 1: Theme Functions and a Twig Primer

  • James Barnett

Abstract

This chapter focuses on the proper way to theme your site, using a markup language called Twig, using theme functions, using theme template files, and using subthemes. Within the pages of this chapter, you’ll take a look at theming the output from a module by using theme functions and a theme template. This chapter also includes an in-depth Twig primer. ( Chapter 13 will introduce you to creating a new theme and a subtheme.) Knowing Drupal programming without knowing how to make your web site look good is not going to go over so well with your clients, employer, or end users. Giving users a great-looking site with a great user experience is why theming your site is an important skill set.

Keywords

Theme Function Markup Language Result Array Module File Base Template 
These keywords were added by machine and not by the authors. This process is experimental and the keywords may be updated as the learning algorithm improves.

Copyright information

© James Barnett 2015

Authors and Affiliations

  • James Barnett
    • 1
  1. 1.MAUS

Personalised recommendations