Skip to content
Home Blog Web Development Getting familiar with Drupal themes

Getting familiar with Drupal themes

  • Web Development
Blueprint Digital
Blueprint Digital

WordPress is a very popular content management system (CMS). It is now estimated that 17% of the websites online use WordPress. I am personally really passionate about WordPress theme development, so my CMS of choice would be WordPress. However, WordPress is not the only option when it comes to CMS. Some of the other major CMSs are Joomla and Drupal. Today, I will be focusing on Drupal.

Theme parts

In Drupal, content is displayed through different theme parts such as nodes, comments, and blocks. Nodes are essentially the content on Drupal sites. Nodes include things like pages and blog entries.

Blocks are boxes that contain different content. It kind of acts like a dynamic sidebar in WordPress. The content and visibility for each block could be set up in the administrator area.

The .info file

There are some files that are an important part of Drupal themes.

The first file is the .info file. Every Drupal theme has one, and it looks something like this:

name = Garland
description = Tableless, recolorable, multi-column, fluid width theme (default).
version = VERSION
core = 6.x
engine = phptemplate
stylesheets[all][] = style.css
stylesheets[print][] = print.css

It contains all the information needed for configuring a Drupal theme, such as the theme name and all the stylesheet files. The .info file also contains JavaScript files that are included in the theme in addition to stylesheets. Just as in WordPress, the main stylesheet is usually called style.css.

The template files

In addition to the standard stylesheets and JavaScript files, Drupal uses PHP template files to customize Drupal themes. The template files have the file extention .tpl.php. Some of the common template files that you will find in a Drupal theme are:

  • node.tpl.php
  • comment.tpl.php
  • block.tpl.php
  • page.tpl.php

Just as how there are different template parts in WordPress, each Drupal template file controls the parts of a Drupal theme. For example, node.tpl.php would control how nodes are displayed when using a Drupal theme. I think the most important and useful template file is page.tpl.php. This file controls the structure of the whole page. It is basically a document with all the HTML in it with Drupal variables plugged in.

Conclusion

The biggest allure to using Drupal is that it is highly customizable. There are many things you could do in Drupal by using things called modules, which involve lots of PHP. One of the disadvantages is that it could be hard to get familiar with it because of the complex user interface and all the customizations that are possible. However, Drupal has a great community of developers and documentation available just like WordPress. This article just skims the surface, but I hope this article was helpful in your understanding of Drupal themes.

Ready to Dominate Online and Grow Your Business?

Schedule time to connect with Blueprint about your online goals, or request a free review of marketing campaigns.

Related Posts

What Makes a Great Website Design for Healthcare Providers?

What Makes a Great Website Design for Healthcare Providers?

A visitor forms a first judgment about a website in about 50 milliseconds. For a healthcare practice, that split second carries more weight than it does almost anywhere else, because the people arriving are rarely in a casual mood. Most have already met the practice online before they ever meet the provider, comparing options and[...]
What Your Website Communicates Before Anyone Reads A Word

What Your Website Communicates Before Anyone Reads A Word

Before a visitor reads your headline, clicks your navigation, or scrolls to your services, your website has already made an impression. It has hinted at whether your business feels established or improvised, whether your brand is clear or scattered, and whether you're worth a few more seconds or a quick trip back to the search[...]
Is Lead Generation Worth It for B2B Companies?

Is Lead Generation Worth It for B2B Companies?

Qualified leads are the foundation of B2B revenue, but the cost to generate them keeps climbing. Search competition is stiffer, buyer attention is shorter, and more companies are chasing the same decision-makers. When marketing spend rises and pipeline stays unpredictable, the question of whether lead generation is worth it becomes harder to ignore. For companies[...]
Previous
Next

Partner with BLUEPRINT to reach your online goals, grow your business and reshape your story.

Get in touch with BLUEPRINT

Reach out to request a discovery call, a free campaign review, or for all other inquiries.

Subscribe to our newsletter