Can't change theme name

时间:2013-10-07 作者:user1632018

我正在开发一个主题,目前没有主题信息。现在它正在从主题文件夹名称中提取其名称,“作者”是匿名的。

我试图通过在样式中添加代码来改变它。css本身:

/*
Theme Name: Twenty Twelve
Theme URI: http://wordpress.org/extend/themes/twentytwelve
Author: the WordPress team
Author URI: http://wordpress.org/
Description: The 2012 theme for WordPress is a fully responsive theme that looks great on any device. Features include a front page template with its own widgets, an optional display font, styling for post formats on both index and single views, and an optional no-sidebar page template. Make it yours with a custom menu, header image, and background.
Version: 1.1
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: light, gray, white, one-column, two-columns, right-sidebar, flexible-width, custom-background, custom-header, custom-menu, editor-style, featured-images, flexible-header, full-width-template, microformats, post-formats, rtl-language-support, sticky-post, theme-options, translation-ready
Text Domain: twentytwelve

This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you\'ve learned with others.
*/
它成功地将文本添加到作者姓名中,只是添加时格式混乱。在“我的主题”页面上显示如下:

Current Theme
Twenty TwelveTheme URI: http://wordpress.org/extend/themes/twentytwelveAuthor: the WordPress teamAuthor URI: http://wordpress.org/Description: The 2012 theme for WordPress is a fully responsive theme that looks great on any device. Features include a front page template with its own widgets, an optional display font, styling for post formats on both index and single views, and an optional no-sidebar page template. Make it yours with a custom menu, header image, and background.Version: 1.1License: GNU General Public License v2 or laterLicense URI: http://www.gnu.org/licenses/gpl-2.0.htmlTags: light, gray, white, one-column, two-columns, right-sidebar, flexible-width, custom-background, custom-header, custom-menu, editor-style, featured-images, flexible-header, full-width-template, microformats, post-formats, rtl-language-support, sticky-post, theme-options, translation-readyText Domain: twentytwelveThis theme, like WordPress, is licensed under the GPL.Use it to make something cool, have fun, and share what you\'ve learned with others.

By Anonymous Version
Customize OPTIONS: Widgets Menus Customize
因此,它所做的基本上是将所有主题信息添加到作者描述/标题中,而不是将信息添加到自己正确的描述/标题中。有人能告诉我为什么会发生这种情况吗?我还没有发现关于这个问题的任何东西,我对为什么会发生这种情况感到困惑。

1 个回复
最合适的回答,由SO网友:Imperative Ideas 整理而成

根据您的描述,通过FTP上载文件时,ASCII的转换不正确。

转到WP Admin并选择外观->编辑器。看看风格。css,它看起来像是以一种非常奇怪的方式缩小了吗?如果是这样,那么您的端的UTF编码就有问题了。如果这种情况发生在像single这样的核心文件上,会变得更加糟糕。php。

在Filezilla中,将传输类型更改为“二进制”,重新上传,然后看看会发生什么。

结束

相关推荐

WordPress未显示css文件

我遇到了一个疯狂的问题,这让我大吃一惊。我在本地主机上安装了Wordpress并开始开发。我修改了标准的2122主题,并在整个网站(4或5页)中添加了自定义HTML和CSS该网站在我的本地机器上显示得很好(Mac OSX-Safari 6.0.5、Firefox 23.0、Chrome 29.0)。我将我的站点转移到我的实时主机(在GoDaddy下),并通过转储然后导入来迁移数据库。现在,我可以将我的站点拉到本地主机下,也可以转到实时主机URL,而该站点看起来与应该的完全一样。然而,当我通过(browse