Forums

How to replace theme's name throughout the whole wordpress folder (6 posts)

  1. article89
    Member
    Posted 7 months ago #

    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:
    http://www.example.com/wordpress/wp-content/themes/THEME/

    TO:
    http://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!

  2. esmi
    Theme Diva & Forum Moderator
    Posted 7 months ago #

    Try editing the theme's name in style.css. Other than changing the folder name, that's all you should need to do.

  3. article89
    Member
    Posted 7 months ago #

    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!

  4. esmi
    Theme Diva & Forum Moderator
    Posted 7 months ago #

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

  5. article89
    Member
    Posted 7 months ago #

    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?

  6. esmi
    Theme Diva & Forum Moderator
    Posted 7 months ago #

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

Reply

You must log in to post.

About this Topic