编辑CSS标题信息将Wordpress网站恢复为默认设置

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

我购买了一个Wordpress主题,我试图在“描述”行中更改一些措辞。但是,如果我更改任何内容,我的所有样式更改都将丢失,我的网站将恢复为默认主题设置(徽标,配色方案等)

是什么导致这个?这是某种嵌入式主题作者保护吗?

/*<br>
Theme Name:<br>
Author:<br>
Author URI:<br>
<b>Description:</b><br>
License:<br>
License URI:<br>
Tags:<br>
Text Domain:<br>
*/
css wordpress
1个回答
0
投票
Theme Name (*): Name of the theme.
Theme URI: The URL of a public web page where users can find more information about the theme.
Author (*): The name of the individual or organization who developed the theme. Using the Theme Author’s wordpress.org username is recommended.
Author URI: The URL of the authoring individual or organization.
Description (*): A short description of the theme.
Version (*): The version, written in X.X or X.X.X format.
License (*): The license of the theme.
License URI (*): The URL of the theme license.
Text Domain (*): The string used for textdomain for translation.
Tags: Words or phrases that allow users to find the theme using the tag filter. A full list of tags is in the Theme Review Handbook.
Domain Path: Used so that WordPress knows where to find the translation when the theme is disabled. Defaults to /languages.

用于子主题的Style.css#用于子主题的Style.css如果您的主题是子主题,则style.css标题中需要模板行。

/*
Theme Name: My Child Theme
Template: Twenty Seventeen
*/

更多关于WordPress documentation的解释。

© www.soinside.com 2019 - 2024. All rights reserved.