There are multiple reasons why someone would want to hide their wordpress theme name to appear in their site’s source code. There are many out there who would be against making these changes and I do not wish to get into that debate in this blog post (maybe we can discuss that in the comments sections below). You can follow the steps mentioned below to achieve the desired result:
- Login to your server using an FTP client. I personally use Filezilla but you can use any other preferable mode/client to do so.
- Once you are logged in, go to public_html > (folder where your wordpress site is installed) > wp-content > themes. Here you will find all the wordpress themes that you have currently installed for your site.
- Identify the theme that you currently have active (and I guess this is the theme that you wish to hide from your source code)
- Now, in a new browser, login to your wordpress admin and visit the themes section. You will have to first deactivate the theme that you currently have active. You can activate any other theme that you wish (you can also use the twentyten theme that is available by default when you install wordpress for the first time).
- Once you have activated the other theme, go to your FTP client and rename the main theme to something else (this is the name that will now appear on your source code)
- After you have renamed the theme folder name, go back to your wordpress admin and again reactivate your original theme. Clear your cache and refresh your site. Now when you look at the source code of your site, you will see the new name appear there.
I hope you liked this tutorial, if so do share it with your friends. Please do not forget to fully back up your wordpress site before making any of the changes suggested above. Share you comments/feedback in the comments section below.
As rightly pointed out by Ashish Kumar, this method is not fool proof and the name of the theme can still be revealed by accessing the style.css file on one’s WordPress site. It is also suggested that you take a proper backup of your site before attempting these changes as they might break your site.