How to Take Ownership of a Theme

I installed WordPress on my website along with a theme close to what I wanted. I then changed virtually all the formatting to make it conform to my site. I don’t plan on publishing my version, but I would like to make it my own so as not to confuse it with the original. I get notices about updates to the original and I don’t want to inadvertently upgrade it.

I see that the folder under themes has the name of the theme, but I imagine there’s more to it than that. I can do database alters if necessary. Would it be easier just to create a new theme and copy all the files to it?

2 Answers
2

The alternative to using a child theme is to make two adjustments to the current theme although technically only one is actually required.

  1. Update the theme name in the theme’s style.css file in the commented section at the top, sometimes referred to as the theme’s headers.
  2. Rename the theme’s main folder, ie. wp-content/themes/THIS-THEME-NAME

#1 is required, the second is optional, but advised so you don’t clash with any new copies of the original theme that may get uploaded(which would overwrite your changed version).

NOTE: If you plan to make these changes to a theme, switch to another theme momentarily on the installation whilst doing so, otherwise your database will get left holding incorrect data on the currently active theme(technically it should cause a theme reset anyway, but it would be the better practice to switch theme before making the changes).

Personally i think the child theme approach is safer, but seeing as you’ve already modded the theme that’s potentially hours of work to re-add all the custom code into new files(in the form of a child theme), so hopefully the above is helpful.. 🙂

Leave a Comment