HOW TO HIDE WORDPRESS THEME NAME IN SOURCE CODE

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.

0 comments:

Post a Comment