我可以在WordPress中更改主题名称吗?

问题描述 投票:0回答:6

我如何更改WordPress中的主题名称?

我还可以更改文件夹名称themy1244 ind thone thone thee them thee them thee them thee them thee them them them them

public/wp-content/themes/theme1244

wordpress themes
6个回答
85
投票
步骤1:首先转到

wp-content/themes/

文件夹。然后将您的主题文件夹重命名为您想要的任何内容。
步长2:打开主题文件夹并打开

style.css

文件。在style.css的顶部,您会看到主题名称。重命名并保存更改。

步骤3:转到
Wp-admin/appearance/themes

并以新名称激活您的主题。

如果您使用的是孩子/父主题,并且还重命名了父主题文件夹和名称,那么步骤3之后,您应该在儿童主题

style.css
.

中更改父主题路径(模板字段)。

注:重命名主题将停止其自动更新,您应该在将来手动进行。


上面的所有内容都是正确的,但还不够。重命名主题后,例如将文件夹重命名为

old-theme

- >

new-theme

24
投票
(颜色,标题 /页脚,小部件等)。这直接在MySQL数据库中完成:

找到表中名为
theme_mods_old-theme
的选项wp_options

    复制
  1. option_value
    (这是以特殊WordPress格式保存主题自定义的文本)
    将复制值输入在
    theme_mods_new-theme
  2. 表中名为
  3. wp_options
    的新选项中。
    
  4.     
您绝对可以在没有任何问题的情况下更改文件夹的名称。如果您只想更改主题名称,请在主题的根文件夹中打开style.css,然后在文件顶部的注释中编辑名称。如果您打算进行更多更改,最好创建一个孩子主题:

Https://codex.wordpress.org/child_themesScreenshot of the wp_options table in phpMyAdmin



2
投票
上面的答案很好,但我想要完整的列表,就是这样 因此,转到:WP-CONTENT/主题/{您的站点名称文件夹}/style.css 并更改此值,如果它们存在,则可以添加它们

/* this should be at the top of your theme CSS file Theme Name: Twenty Fifteen Child Theme URI: http://example.com/twenty-fifteen-child/ Description: Twenty Fifteen Child Theme Author: John Doe Author URI: http://example.com Template: twentyfifteen Version: 1.0.0 License: GNU General Public License v2 or later License URI: http://www.gnu.org/licenses/gpl-2.0.html Tags: light, dark, two-columns, right-sidebar, responsive-layout, accessibility-ready Text Domain: twentyfifteenchild */

请查看更多详细信息

2
投票

在这里参加聚会很晚,但每个人似乎都忘记了一些东西。执行任何类似列出的步骤之前的第一步是:

deceectivivectivectivectivectivectivectivectivectivectivectivectivectivectivectivectivectivectivectivectivective thee Atimity即将更改它。选择一个次要主题(应该始终是最新的WP'Twpthenty*'主题作为后备主题)。 short不修改内存文件!


0
投票
1。只需用您的欲望主题名称而重命名主题名称。 2。打开您的欲望主题名称和打开样式。 3。您可以在Admin仪表板 - >外观>主题中看到您的欲望主题,只需选择并激活它。

最新问题
© www.soinside.com 2019 - 2025. All rights reserved.