Black Friday Black FridayUp to 85% off all WP Ghost plans.48 months from $49, or pay once for lifetime. SHOP NOW

How Do I Hide the Theme Name in WordPress?

Moved

This tutorial has moved to the new WP Ghost Knowledge Base where each feature is presented in detail.

View on new site

Yes, with WP Ghost. It replaces your theme’s folder name with a random code in the page source, renames the style.css file that theme detectors read, and blocks the old /wp-content/themes/ path. Then test with a theme detector to confirm it can’t name your theme.

Why your theme name is a security risk

Your active theme’s folder name appears in every CSS and JavaScript reference in your page source. A path like /wp-content/themes/astra/style.css tells anyone, and any bot, which theme you run. Theme detectors read this path and check the theme name and version against public vulnerability databases. If your theme version has a known flaw, automated attacks can find it fast.

On top of that, every WordPress theme includes a style.css file with a standardized header that contains the theme name, version number, author URL, and description. This is a complete fingerprint that any scanner can read with a single request. Hiding the theme name means removing all of these signals from your site.

How to hide the theme name with WP Ghost

WP Ghost hides your theme in five steps; for complete hiding, use them all. Start by choosing Safe Mode or Ghost Mode at WP Ghost > Change Paths > Level of Security, then set the theme options.

Change the themes path. Go to WP Ghost > Change Paths > Themes Security. Enter a name in the Custom themes Path field. This replaces /themes/ in your URLs, so /wp-content/themes/astra/ becomes something like /wp-content/layouts/astra/, and scanners that look for the /themes/ pattern miss it. Click Save.

Hide theme names. In the same Themes Security section, switch on Hide Theme Names. This replaces your active theme’s directory name with a randomly generated code. Instead of /layouts/astra/, the path becomes /layouts/t7k2m/. No one can identify your theme from the page source. Click Save.

Hide all themes. Switch on Hide All The Themes to hide inactive themes too. Inactive themes still sit on your server and can be attacked if they have known flaws, so this covers them as well.

Hide the old themes path. Switch on Hide WordPress Old Themes Path. This returns a 404 error for any request to the original /wp-content/themes/ URL, blocking bots that probe the default location.

Rename style.css. Enter a custom name in the Custom Theme Style Name field (like “main.css”). Keep the .css extension. This breaks theme detectors that specifically request style.css to read the theme header.

After saving, clear all cache and run the Security Check at WP Ghost > Security Check to verify the theme name is fully hidden. You can also check manually by viewing your page source and searching for your theme name. If it does not appear anywhere, theme hiding is working. For a complete walkthrough with screenshots, see the Change Themes Path in WordPress tutorial.

Verify with theme detectors

After configuring WP Ghost, test your site with theme detectors like BuiltWith, Wappalyzer, IsItWP, or WhatWPThemeIsThat. If they cannot identify your theme (or report a different CMS entirely if you have the CMS Simulator enabled), the hiding is working correctly. For a complete guide to defeating all major detectors, see How to Hide from WordPress Theme Detectors.

Frequently asked questions

Will hiding the theme name break my site’s design?

No. WP Ghost creates virtual paths through URL rewrite rules. Your theme files stay in their original location on the server. CSS, JavaScript, images, and template files all load normally through the new URLs. Your visitors see no difference at all.

Does this work with child themes?

Yes. WP Ghost detects and hides both parent and child theme names. The Advanced Options panel lets you assign custom names to each theme individually if needed.

Should I also hide the plugins path?

Yes. Themes and plugins are both inside /wp-content/. If you hide the theme name but leave plugin paths at their defaults, scanners can still confirm your site runs WordPress. For complete path security, also change the plugins path and change the wp-content path.

Will hiding the theme name affect SEO?

No. Theme path changes affect asset URLs (CSS, JS, images), not your public page URLs. Search engines don’t index or rank based on your theme file paths. Your posts, pages, sitemaps, and canonical URLs remain unchanged.

Does WP Ghost modify WordPress core files?

No. WP Ghost never touches, moves, or renames any file or folder on your server. Theme files stay in /wp-content/themes/ exactly where WordPress expects them. All path changes use server rewrite rules and WordPress filters. Deactivating WP Ghost restores all original paths instantly.