To hide the theme name in WordPress, you can use the WP Ghost plugin.

Here’s how you can hide the the theme names:

  1. First, you must install and activate the WP Ghost plugin on your WordPress website and activate the Safe Mode or Ghost Mode from WP Ghost > Change Paths > Level of Security.
  2. Next, go to WP Ghost > Change Paths > Theme Security section.
  3. Switch on the Hide Theme Names option to change all the theme names in frontend with random names.
  4. Click the Save button to apply the changes.

With these steps, WP Ghost will hide the theme names from public view on your WordPress website. Obscuring information about the themes you are using can help improve your site’s security.

Keep in mind that this functionality will work as long as the WP Ghost plugin is active.