How to Find a Site's WordPress Theme Manually
Updated 23 Oct 2026 路 by the DetectWP team
Every WordPress site has to tell the browser where its stylesheets, fonts and scripts live, and those URLs almost always point into the theme folder. That means you can usually identify a site's theme in under a minute with nothing more than your browser's view-source window. This guide walks through the manual process step by step, explains how to read a theme's style.css header, shows how to recognise a child theme, and covers what to do when a site has renamed or hidden its theme.
If you would rather skip the manual work, DetectWP does all of this automatically from the public HTML. But knowing how it works helps you judge the result, and it is the only option when a site is deliberately obscured.
Step 1: Open the page source and search for /wp-content/themes/
Open the site in your browser, then view the page source. In Chrome, Edge and Firefox you can press Ctrl+U (or Cmd+Option+U on a Mac), or prefix the address with view-source:. Avoid the Inspect panel for this step, because it shows the DOM after JavaScript has run; the raw source is what the server actually sent.
Press Ctrl+F and search for /wp-content/themes/. The first path segment after that folder is the theme's directory name, usually called its slug. For example, in a line such as <link rel='stylesheet' id='astra-theme-css' href='https://example.com/wp-content/themes/astra/assets/css/minified/main.min.css?ver=4.8.0'>, the theme slug is astra.
Two things to notice in that line. The id attribute ends in -css and starts with the handle the theme registered, which often repeats the theme name. The ?ver= query string is frequently the theme version, because most themes pass their own version number when enqueuing styles. It is not guaranteed, though: some themes pass the WordPress version or a file timestamp instead.
Classic themes almost always load their style.css or a compiled stylesheet from this folder. Block themes such as Twenty Twenty-Four may not enqueue style.css at all, since their styling is generated inline from theme.json, but they still reference the theme folder for fonts, block stylesheets or images. If your first search finds nothing, search for themes/ on its own; the path may be written without a leading slash or with the domain escaped as https:\/\/ inside a script block.
Step 2: Read the style.css header
Once you have the slug, open the theme's stylesheet directly: https://example.com/wp-content/themes/<slug>/style.css. WordPress requires every theme to have this file, and its opening comment block is where the theme declares itself. A typical header is a series of Field: value lines inside a CSS comment, for example Theme Name: Astra, Theme URI: https://wpastra.com/, Author: Brainstorm Force, Version: 4.8.0, Requires at least: 5.3, Requires PHP: 5.6, License: GNU General Public License v2 or later and Text Domain: astra. The full list of recognised fields is documented in the WordPress theme handbook.
The fields that matter most for identification are:
- Theme Name is the display name shown in the WordPress admin. This is the name you are looking for.
- Theme URI and Author URI tell you where the theme comes from, which is handy when the name is generic.
- Version is the installed version, useful if you want to know whether the site is running an old release.
- Template is only present in child themes and names the parent theme's folder (see the next step).
- Text Domain is the translation identifier. It usually matches the original slug even when the folder has been renamed, which makes it a useful clue later on.
If the stylesheet returns a 403 or 404, the host or a security plugin is blocking direct file access. That does not stop you from reading the slug in the HTML; it only removes the convenient header. In that case move on to the clues in the final sections.
Step 3: Check whether it is a child theme
Many sites run a child theme: a small theme that inherits everything from a parent and overrides a few files. Child themes are common on agency builds and on sites using popular frameworks such as Astra, GeneratePress and Kadence, where a child theme is the recommended way to add custom code.
You can spot a child theme in two ways. First, the page source will reference two different folders under /wp-content/themes/, for example /themes/astra-child/style.css alongside /themes/astra/assets/css/.... Second, the child's style.css header contains a Template: line pointing to the parent folder, such as Template: astra.
The child theme is the one that is technically active, but the parent is the one that provides the design, templates and features. When someone asks "what theme is this site using?", the parent is usually the more useful answer. Our guide on child themes versus parent themes covers the relationship in more detail, including why detectors report both.
Step 4: Confirm with secondary clues
A theme slug is strong evidence, but it is worth confirming it with a second signal, especially on heavily customised sites. Useful places to look:
- Body classes. Many themes add their own prefix to the
<body>or wrapper elements. Astra usesast-classes, GeneratePress usesgenerate-prefixes, Blocksy usesct-, and Divi useset_pb_andet-. Kadence is easier to spot from its style handles, which appear asid='kadence-global-css'and similar. - Script handles. Inline scripts and
<script id='...-js'>tags often carry the theme name in the handle, and localised settings objects such asastraorgeneratepressNavSearchappear in inline JavaScript. - Fonts and images. Theme-bundled fonts and icon sets load from
/wp-content/themes/<slug>/assets/, and block themes reference their fonts there even when they load no stylesheet. - Other theme files.
readme.txt,screenshot.pngandtheme.jsonin the theme folder are frequently readable and confirm the name.
If every clue points to the same theme, you can be confident. If the slug says one thing and the class names say another, you are probably looking at a renamed theme, which is the subject of the next section.
What to do when the theme is renamed or hidden
Some site owners rename the theme folder, edit the style.css header, or install a plugin that rewrites /wp-content/ paths to something generic. It is a legitimate choice and it defeats the simple slug lookup, but it rarely removes every fingerprint. Work through these checks in order:
- Ignore the folder name and read the header. A renamed folder often still contains an untouched
style.csswith the original Theme Name, Theme URI and Text Domain. - Look for the Text Domain in the HTML. Translation strings, script handles and CSS prefixes tend to keep the original text domain even after a cosmetic rename.
- Match CSS prefixes against known themes. Class prefixes such as
ast-,generate-,kadence-,ct-(Blocksy) oret_pb_(Divi) identify the framework regardless of what the folder is called. - Check the page builder. Builder markup is independent of the theme. If you see
elementor-classes, the theme may be a minimal companion such as Hello Elementor; if you seeet_pb_the theme is almost certainly Divi. Our page builder comparison lists the markers for each builder. - Accept that custom themes exist. If none of the above matches anything you recognise, the site may genuinely be running a bespoke theme built for that client. In that case the Theme Name is whatever the developer chose, and there is nothing further to "discover".
Be aware that if /wp-content/ itself has been renamed, your initial search will fail. Search instead for /themes/, /plugins/ and /uploads/, which usually survive because they are harder to rename without breaking plugins.
Or let DetectWP do it for you
Everything above is exactly what the DetectWP theme detector does when you paste a URL: it fetches the public HTML, extracts every /wp-content/themes/ path, reads the style.css header where it is accessible, identifies child and parent themes from the Template: field, and falls back to CSS and JavaScript fingerprints when the folder has been renamed. It also reports the detected theme version and cross-references it against known vulnerabilities, which is tedious to do by hand.
The manual method still earns its place. It works offline against a saved page, it lets you inspect sites that block automated scanners, and it gives you the judgement to notice when an automatic result does not add up. You can read more about how each signal is weighted on our methodology page.
Frequently asked questions
Why can't I find /wp-content/themes/ in the page source?
Either the site is not running WordPress, it has renamed the wp-content directory, or a caching or optimisation plugin has combined the theme's CSS into a file under /wp-content/cache/. Try searching for /themes/ on its own, look at font and image URLs, and check for theme-specific CSS class prefixes.
Is the theme listed in the HTML always the active one?
The folder referenced for style.css is the active theme. If that stylesheet's header contains a Template: line, the active theme is a child theme and the Template value names the parent that provides most of the design.
Does the ?ver= number on the stylesheet tell me the theme version?
Often, but not always. Most themes pass their own version number, but some pass the WordPress version, a file modification time or nothing at all. The Version: field in style.css is the authoritative source.
Can I find the theme if the site blocks access to style.css?
Yes. The theme slug is still visible in asset URLs in the HTML, and CSS class prefixes, script handles and font paths usually confirm which theme it is. You only lose the convenient header with the display name and version.
Is it legal to look at a site's theme this way?
Viewing publicly served HTML and CSS is normal browser behaviour and is how every page is rendered. You are not accessing anything private. Copying a premium theme you find this way without a licence is a different matter and is not covered by this guide.
Related
Free tools: WordPress plugin detector 路 WordPress theme detector 路 WordPress hosting detector