• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 279
  • Last Modified:

Rename theme after already customizing it?

For our public site, we installed and started using the Responsive Business theme. Without considering the consequences, we also started editing the theme's css and template files to accommodate our needs.

Ofcouse, we should have copied and renamed the theme.

So, can I rename the current theme now. Will it break anything? Other suggestions?
  • 2
1 Solution
It could cause problems, but if you followed standard Drupal practices (read: didn't hard code anything) then it will probably work. I've never done it, but I can't off the top of my head think of why it wouldn't.

If you have code in template.php you'll need to change the function names. The same goes with theme_settings.php (if there is one). You'll also have to change the .info file -- both the name as well as the theme information inside it. Finally, you'll have to change the name of the folder that contains the theme.

I think that's all you'll need to do. You will definitely have to set the theme of your site temporarily to another one, then make the changes, clear your cache, then set the theme to your "new" theme. Be sure to clear the caches a lot -- it will catch any weird errors that happen along the line in your system table.

Again, I've never done this, and I haven't had my first cup of coffee yet, but that's how I'd do it. And I'd do it on a backup, or be sure to back everything, everything up multiple times before you do anything. :)

Good luck!

Sometimes I have been able to rename the theme and it works, and other times it fails. You can always try to rename it, and rename the .info file of course and add the new name to the info file, then upload it and choose it as the default theme. If it doesn't work, then go back to the original theme.
I never change the template file, but I always create my own css file to tweak the design, and then add it to the .info file. That way it never gets overwritten.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now