🔍Auto-DetectWPWordPressSHShopifyDRDrupalJOJoomlaMOMoodlePSPrestaShopHSHubSpotOCOpenCartGHGhost
tutorials

What Drupal Theme Is That? How to Find Any Drupal Site's Theme

Three places Drupal names its active theme in public HTML, in the order to check them — plus the Drush and SQL commands if you have server access.

TW
The Websites Detector Team
Published Nov 25, 20265 min read
📖

Drupal powers a large share of university, government and enterprise websites, and almost none of them look like a stock theme. So when you land on one you like, "what theme is this?" is a fair question with a less obvious answer than it has on WordPress.

The good news: Drupal names its active theme in public HTML on nearly every site. The catch is that the most widely repeated method — look for /themes/custom/ in the stylesheet links — fails on a large share of production sites. We found that out by testing our own detector against real Drupal 10 and 11 sites and watching it miss three of eight.

This guide covers the three places to look, in the order to check them, and what to do when you have server access instead.

First, confirm it is Drupal

Open the page source (Ctrl+U or Cmd+Option+U) and search for generator. Most Drupal sites still print:

<meta name="Generator" content="Drupal 11 (https://www.drupal.org)">

If the tag has been removed, look for data-drupal-selector, drupal-settings-json, or paths starting with /sites/default/files/. Any of those confirms Drupal. If none appear, check the general CMS markers first — you may be on a different platform entirely.

Method 1: drupalSettings (most reliable)

Drupal 8 and later embed a JSON block called drupalSettings in every page. Search the source for ajaxPageState:

"ajaxPageState":{"libraries":"eJx1…","theme":"rutgers_edu","theme_token":null}

The theme value is the machine name of the theme Drupal actually used to render that page. Not a guess from a file path — Drupal stating it directly. This is the field to trust above all others.

In our test it was present on six of eight sites, including pfizer.com, unicef.org, acquia.com and london.gov.uk.

Method 2: the aggregated CSS URL

Production Drupal sites usually turn on CSS aggregation, which bundles every stylesheet into one hashed file. That is exactly what breaks the /themes/custom/ method — the theme's own CSS path disappears into something like:

<link rel="stylesheet" href="/sites/default/files/css/css_ub0fk0My….css?delta=0&language=en&theme=fresh&include=eJyN…">

Look at the query string. Since Drupal 10.1, aggregate URLs carry a theme= parameter naming the active theme. On cam.ac.uk that reads theme=fresh; on ed.ac.uk, theme=wpp_theme. Neither site exposes a single /themes/ path, so a detector that only reads asset paths reports nothing at all.

Method 3: theme asset paths

On sites without aggregation, or older Drupal versions, the theme shows up in ordinary stylesheet and script paths:

PathWhat it means
/themes/custom/<name>/A theme built for this site
/themes/contrib/<name>/A theme downloaded from drupal.org
/core/themes/olivero/Drupal's default front-end theme
/sites/all/themes/<name>/Drupal 7 layout

One trap: base themes. Many custom themes inherit from stable, stable9 or classy, and those load their own CSS on every page. On rutgers.edu, /themes/contrib/stable/ appears 21 times and the real theme, rutgers_edu, appears twice. Counting paths and taking the most frequent gives you the wrong answer. Skip stable, stable9, classy, claro and seven unless nothing else is present — claro and seven are admin themes that occasionally leak onto public pages.

What our survey found

We checked eight real Drupal 10/11 sites on 25 November 2026:

SiteThemeFound by
pfizer.compfecpfizercomusdrupalSettings
rutgers.edurutgers_edudrupalSettings
unicef.orgunicef_basedrupalSettings
acquia.comjuicedrupalSettings
london.gov.ukgla_lgovdrupalSettings
cam.ac.ukfreshaggregate URL
ed.ac.ukwpp_themeaggregate URL
uvm.eduuvm_themeasset path

The old /themes/custom/-only check — which is what our own Drupal detector used until this week — finds five of these eight. Pfizer, Cambridge and Edinburgh all serve aggregated CSS only, so it found nothing. We rebuilt the Drupal theme detector to check all three methods in the order above, and it now names the theme on all eight.

Why the name usually isn't a product you can buy

Every theme in that table except Olivero-style core themes is custom: built by an agency, for that organisation, and never sold anywhere. That is normal for Drupal. Unlike WordPress or Shopify, Drupal has no large commercial theme marketplace — big Drupal sites commission their own.

So when a detector returns gla_lgov, the useful reading is "the Greater London Authority's own theme", not "a theme called GLA you can install". If you want the look, the realistic routes are:

  • Check the base theme. If the custom theme sits on top of a contributed base like Radix, Bootstrap Barrio or Gin, that base is something you can download from drupal.org.
  • Find the agency. Footer credits, the site's accessibility statement, or a case study on an agency's own site usually name who built it.
  • Start from Olivero. Drupal's default front-end theme is modern, accessible and a reasonable foundation for a custom build.

If you have server access

When you own the site, skip the HTML entirely.

Drupal 8, 9, 10 and 11, with Drush:

drush config:get system.theme default

Drupal 7, with Drush:

drush variable-get theme_default

Directly in the database (Drupal 7):

SELECT value FROM variable WHERE name = 'theme_default';

The value is PHP-serialized, so s:7:"bartik"; means the theme is bartik.

Directly in the database (Drupal 8+):

SELECT data FROM config WHERE name = 'system.theme';

That returns a serialized array containing both default (the public theme) and admin (usually Claro).

In the admin UI, the answer is under Appearance — the theme marked "Default theme" is what visitors see.

When none of this works

If a site returns nothing at all, it is usually not Drupal hiding the theme — it is the server refusing to answer a non-browser request. Drupal.org itself does this. We wrote up why some sites cannot be scanned and what a 403 or challenge page tells you.

For everything else, paste the URL into the Drupal theme detector — it runs the three checks above and tells you which one found the answer.