How To Rename Your WordPress Theme

August 25, 2015   /   by Marco  / Categories :  Business
HOW TO RENAME YOUR WORDPRESS THEME

There are a number of advantages of renaming a WordPress Theme but I won’t into details in this post. I just need to jot down some of the steps. Here’s the steps (I’m using a CentOS VPS server so some of these commands may not work for you):

Firstly, SSH into your server and go into the folder wp-content/themes/

Copy the folder of the theme you are currently using to a new name e.g phototastic to newtheme. The command I used was:

[codesyntax lang=”php”] [/codesyntax]

Rename Your WordPress Theme

As you can see above, the file ownership belongs to root, so we need to change the file ownership to admin. The command I used was:

[codesyntax lang=”php”] [/codesyntax]

Rename Your WordPress Theme - change ownership

Go into the newtheme folder and edit the styles.css file. In particular change the Theme Name, Theme URI, Author, Author URI and Text Domain.

Rename Your WordPress Theme - style css file

Switch the theme in the dashboard by going to Appearance and active your new theme.

Rename Your WordPress Theme - activate new theme

If you want to retain the look and feel of your previous theme then you need to go into the database and in the wp_options table look the option_name called theme_mods_[old_theme] and copy the option_values from this to theme_mods_[new_theme]

Rename Your WordPress Theme - Data

You can also update the screenshot.png by tacking a screenshot of your website and then uploading the file to wp-contents/themes/newtheme/

In some instances, I had to reselect the Menu items in the Manage Location section.

Rename Your WordPress Theme - Menu

NOTE: There are a few drawbacks with renaming your WordPress theme, one being that if there are any updates to the theme, you may not be able to simply click on the update button.
FEEDBACK
I hope this has helped some of you. If you need any further help, please let me know by leaving a comment.

 

DO YOU LIKE WHAT YOU'VE READ?
Join our subscription list and receive our content right in your mailbox. If you like to receive some Great deals our Freebies then subscribe now!

Our Sponsors

  • Follow us:

OTHER ARTICLES YOU MAY LIKE


IT’S THAT TIME OF THE YEAR FOR BLACK FRIDAY LIFETIME DEALS

IT’S THAT TIME OF THE YEAR FOR BLACK FRIDAY LIFETIME DEALS

A lot of us look forward to Black Friday as it’s that time of the year where you can get awesome lifetime deals. We’re constantly posting lifetime deals and this time we have one that you should not miss out since they are only available for a limited time. Buy Software Apps has been publishing […]

read more
WINDOWS 11 UPGRADE

WINDOWS 11 UPGRADE

Are you planning to upgrade from Windows 10 to Windows 11? Don’t know what to do or your PC doesn’t meet the requirements? You may be in luck as we were able to upgrade our laptops to Windows 11. Here is a video if you’re experiencing an issue with the PC not meeting all the […]

read more

Subscribe

Receive the latest news and awesome deals via email

Like our Page

site auditing tools