我可以在 WordPress 中更改主题名称吗? [英] Can I change the theme name in WordPress?

查看:61
本文介绍了我可以在 WordPress 中更改主题名称吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何更改 WordPress 中的主题名称以及在哪里?

How can I change the theme name in WordPress and where?

我是否也可以更改public/wp-content/themes/theme1244中的文件夹名称theme1244,以后不会出现问题?

Can I also change the folder name theme1244 in public/wp-content/themes/theme1244 without having problems in the future?

推荐答案

第一步:首先进入wp-content/themes/文件夹.然后将您的主题文件夹重命名为您想要的任何名称.

Step 1: Firstly go to wp-content/themes/ folder. And then rename your theme folder to whatever you want.

第 2 步:打开您的主题文件夹并打开 style.css 文件.在 style.css 的顶部,您将看到主题名称.重命名并保存更改.

Step 2: Open your theme folder and open style.css file. In top part of style.css you will see theme name. Rename it and save changes.

第 3 步:转到 Wp-admin/appearance/themes 并以新名称激活您的主题.

Step 3: Go to Wp-admin/appearance/themes and activate your theme under new name.

如果您正在使用子/父主题并且还重命名父主题文件夹和名称,那么在第 3 步之后,您应该另外更改子主题的 style.css 中的父主题路径(模板字段).

If you are using child/parent theme and you also rename parent theme folder&name, so after Step 3 you should additionally change parent theme path (template field) in child theme’s style.css.

注意:重命名您的主题将停止其自动更新,您应该在以后手动进行.

note : renaming your theme will stop its automatic updates, you should do it manually in the future.

这篇关于我可以在 WordPress 中更改主题名称吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆