scott's blog

How to Change the Content-Type Meta Tag in Drupal

scott

I'm working on an HTML5 theme for Drupal 7 right now, and I needed to change the meta content-type tag. By default it looks like this: <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />, and I needed the updated HTML5 version: <meta charset="utf-8" />. Normally, you can replace these things in one of the theme template files, but in this case, the meta tag was hard-coded in the Drupal source code somewhere, so I needed a programmatic solution. Here's what I found for both Drupal 6 and 7.

Big news for web fonts and video today

scott

The codec wars around the HTML5 video element might be settled sooner than you think: Basically, Google just open-sourced VP8, a video codec. VP8 is being combined with the Vorbis audio codec to create a new video format called WebM.

Metal Toad is a DrupalCon Gold Sponsor

scott

Gold Sponsor, DrupalCon SF 2010

Metal Toad is proud to be a gold sponsor for DrupalCon SF 2010. If you see us there, say hello!

Drupal Theming 101: Theme Developer Module

scott

If you haven't already heard of it, the Theme Developer is a great tool. It works like firebug, but for Drupal. You can click any element on the page to inspect it, and the Theme Developer window will show you what template files and functions were used to render it, and give you suggestions on which files you can edit to affect it.

Drupal Theming 101: How to Remove System Stylesheets

scott

When you first start creating a Drupal theme, you might be frustrated by the large number of stylesheets that are included by default in your theme -- especially if you're creating a Zen sub-theme. Most of the documentation suggests that you override these styles in your own themename.css file.

Syndicate content