Brian Ogden
Brian Ogden

Reputation: 19212

Why did Wordpress overwrite my custom TwentyTwelve Theme?

Do the standard TwentyTweleve, TwentyThriteen and TwentyFourteen Wordpress themes update automatically? I had some pretty heavy customizations in the TwentyTwelve Wordpress theme that were overwritten out of now where. Did not update Wordpress to a later version.

Do those themes update automatically? If I rename the folder to "MyCustomTheme" will I prevent this from happening again?

Upvotes: 0

Views: 325

Answers (2)

Nicholas Summers
Nicholas Summers

Reputation: 4756

First and foremost, anytime you preform a core update on any application, you should always do a backup of your system in its' current state including any databases you may have in place.

Beyond that, you can prevent WordPress from overwriting any customization to the default themes by simply renaming that theme's folder.

However, I also recommend looking into starter themes for WordPress such as Underscores and Bones instead of starting with one of the built in themes.

Upvotes: 1

Pieter Goosen
Pieter Goosen

Reputation: 9941

The accepted answer is a lot of bull.

Here is what happens and what you should do

First of all, NEVER make any changes to any core file/plugin or theme, except when you are the author of that particular theme/plugin. The most obvious reason is the one that you've seen now, every change gets overwritten on updates. The core themes automaticaaly updates with core update.

The solution, create a child theme. The bundled themes are excellent for child themes. Child themes are really easy to create, 5minute max. You can modify the parent theme as you like, and the great thing is, it never gets updated or overwritten on core updates. You are the only one that can alter your child theme or update it as you wish.

There are many tutorials out there on child themes, even the codex have a page dedicated page to creating a child theme. Read that, it should help you out a lot.

Upvotes: 0

Related Questions