自定义WordPress主题在主题选择器中的外观

时间:2011-01-28 作者:Farinha

如何自定义我的主题如何显示在管理控制台的“外观”->“主题”部分下的可用主题列表中。我需要更改主题名称、作者和描述等内容。

2 个回复
最合适的回答,由SO网友:MikeSchinkel 整理而成

你需要创建一个screenshot.png 并将其存储在主题目录中。

请参阅目录了解第二十个主题:

Screenshot of WordPress TwentyTen theme directorymikeschinkel.com)

当然是这样的:

WordPress TwentyTen theme screenshotmikeschinkel.com)

更新要更新主题名称、作者和描述,请修改样式的标题。css文件。以二十世纪十年代的一个为例;除了Theme Name: 是可选的:

/*
Theme Name: Twenty Ten
Theme URI: http://wordpress.org/
Description: The 2010 theme for WordPress is stylish, customizable, simple, and readable -- make it yours with a custom menu, header image, and background. Twenty Ten supports six widgetized areas (two in the sidebar, four in the footer) and featured images (thumbnails for gallery posts and custom header images for posts and pages). It includes stylesheets for print and the admin Visual Editor, special styles for posts in the "Asides" and "Gallery" categories, and has an optional one-column page template that removes the sidebar.
Author: the WordPress team
Version: 1.1
Tags: black, blue, white, two-columns, fixed-width, custom-header, custom-background, threaded-comments, sticky-post, translation-ready, microformats, rtl-language-support, editor-style
*/

SO网友:Please treat your mods well.
结束

相关推荐

Adding goodies to themes

如何在主题更新时向Arjuna-X等主题添加内容而不丢失?儿童主题是一种很好的方式,还是有其他选择?如果新版本的主题对我添加的功能具有本机支持,该怎么办?