How To Rename Your WordPress Theme
August 25, 2015 / by Marco / Categories : BusinessThere 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:
cp -r phototastic newtheme
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:
chown -Rv admin:admin newtheme
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.
Switch the theme in the dashboard by going to Appearance and active your 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]
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.
OTHER ARTICLES YOU MAY LIKE
POWERFUL REFERRAL PROGRAM TOOL
Businesses of all sizes are constantly seeking new and innovative ways to grow their customer base and increase brand awareness. With the rise of social media and the reliance on word-of-mouth marketing, referral programs have become an essential tool for companies looking to expand their reach. However, managing a successful referral program can be a […]
read moreCYBER SECURITY PLATFORM FOR YOUR BUSINESS
Cyber security has become a top priority for individuals and organizations alike. With the ever-evolving threat of cyber attacks, it is imperative to have a strong and reliable security platform in place to protect sensitive information and data. That’s where Bleach Cyber comes in. As a leading cyber security platform, Bleach Cyber is dedicated to […]
read more