• Hi all, first time here. I need to know how to replace the theme’s name throughout my whole website (not just the folder’s name inside of wp-content/theme).

    In other words, I don’t want people to go to my website and click on view source and know right away the theme I’ve used.

    Here’s the change I need to do:

    FROM:
    https://www.example.com/wordpress/wp-content/themes/THEME/

    TO:
    https://www.example.com/wordpress/wp-content/themes/NEW_NAME/

    Is there a software or a command to automate that action?

    Here’s the action in my own words:

    Read this entire directory, go inside each and every file (.php, .html, etc…), read every line of code, and replace “THEME” with “New_NAME”

    Thanks in advance!

Viewing 5 replies - 1 through 5 (of 5 total)
  • Try editing the theme’s name in style.css. Other than changing the folder name, that’s all you should need to do.

    Thread Starter article89

    (@article89)

    I understand, and I thought of that but this is for a client, and I don’t want the client to know the theme’s name. That’s why I actually need to change the folder’s name.

    I appreciate your help!

    Try editing the theme’s name in style.css. The theme’s name shouldn’t appear anywhere else.

    Thread Starter article89

    (@article89)

    Will changing the name of the theme in style.css also change the name of the theme in all other .php files?

    I’m asking that because for example: If you change the name of an image on a server but you don’t update the links that point to that image, they will still look for the old image file name.

    In this case I need to change the links.

    Got it?

    The theme name isn’t normally used an any other template files.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘How to replace theme's name throughout the whole wordpress folder’ is closed to new replies.