Change Theme or Template Name

Hello,

How can I properly change the theme/template name in my website?

Thank you for your kindly help.

Cheers!

Hello There,

Thanks for writing in!

A theme is different from a template. If you want to change the name X theme, it is best you will understand how a WordPress theme works. Please check out this codex:
https://codex.wordpress.org/Using_Themes
https://codex.wordpress.org/Theme_Development

If are you are referring to a page template, you might want to get familiar with the different page templates in X theme. Please check out this knowledge base article: https://theme.co/apex/forum/t/features-page-templates/50/1

To know more about how page templates in WordPress works, you can check this codex: https://codex.wordpress.org/Pages#Page_Templates

Hope this helps.

Thank you RueNel,

I just want to change the Pro Theme to my preferred name. I went through your given links but still could not know how to change it.

Kindly give me a straightforward direction of how I can achieve it. And also give me instruction, to avoid the issue when updating the theme.

Thank you

Hello There,

Thank you for the clarifications. Changing the name Pro theme would mean that you edit the style.css of the Pro theme. And if there are any updates of the name your changes will be overwritten and will return to Pro Theme again. Because what you are trying to accomplish requires a template customization, we would highly to suggest that you use a child theme. This allows you to make code changes that won’t be overwritten when an X update is released. You can get the child theme here: https://theme.co/apex/child-themes

And when the Pro Child theme is installed and active, your will have Pro - Child Theme as the name of your theme. You can change the name by going to Appearance > Editor and edit the child theme’s style css. The code will look like this:

/*

Theme Name: Your custom Name Here
Theme URI: http://theme.co/xpro/
Author: Themeco
Author URI: http://theme.co/
Description: Make all of your modifications to X Pro in this child theme.
Version: 1.0.0
Template: pro

*/

You can change all the details of the child theme in the code above except the Template: pro. It must remain pro so that it can locate the parent theme which is the Pro theme. If you rename it, you will encounter issues later on.

Hope this helps.

Thank you, this means that people still see that my site is using Pro Theme.

I just change the detail via Child Theme. However, i still see the Pro.

Thank you

Hello There,

wp-content/themes/pro/ and wp-content/themes/pro-child/ are the folder names and the specific names of the Pro and Pro Child theme. If you renames those names, you won’t be able to update the themes in the future with automatic updates. You will always encounter errors which is why we do not recommend changing those names.

Hope this explains it briefly.

Thank you RelNel.

On behalf of my colleague, you’re welcome. Cheers! :slight_smile:

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.