WordPress 中文文档
使用主题
From WordPress Chinese
目录 |
[编辑]
主题是什么?
WordPress主题可以看作你的Weblog的皮肤。
一个WordPress主题由一系列文件构成,它们被称之为模板文件. 这样在修改主题时,可以保持底层程序不变。 463577474345327129606279
[编辑]
获取最新主题
- WordPress官方主题网站
- Codex WordPress主题列表
- WordPress Theme Viewer
- How to Blog's List of 615+ Themes
- Alex King's WordPress Theme Competition
- WordPress Index and Theme Builder
- WordPress Theme Park
- WordPressTheme.com
- Kaushal Sheth's Wordpress Theme Viewer
- Gallery for WordPress
- Johntp WP-Skins
- Skins/Themes for WordPress
- GFXedit.com Themes
[编辑]
主题通告
- Web Tools Collection
- Blogging Pro WordPress Themes Category
- WordPress forums
- How to Blog's Comprehensive Theme List
- Alex King's WordPress Theme Competition
- WordPress theme park
[编辑]
使用主题
WordPress的其下载安装包包含两个主题。你可以在控制面板里切换使用。
[编辑]
添加新主题
网络上有很多最新设计的新主题提供下载使用。
Image:Themes.png
Presentation Theme Panel
- 下载主题文件,解压时保持文件夹结构。注意阅读主题作者提供的说明,如果有的话。
- 使用FTP客户端 将文件上传到目录wp-content/themes。比如说,叫Test的主题应该位于目录wp-content/themes/test下(注意test目录下将存在一个index.php文件)。
- 下面给出使用新主题的步骤:
[编辑]
使用主题
- 登陆WordPress管理面板.
- 进入Presentation 自面板.
- 在表中的 选择栏目, 点击 Select 选择你想要采用的主题.
- 点击界面头部的View Site,察看新的界面.
你的选择会立即生效.
[编辑]
创建属于自己的主题
如果你想建立属于自己的主题,或者想了解主题的结果,请先回顾Theme Development和Designing Themes for Public_Release.
[编辑]
主题文件
下面是一个通常的主题所需要的文件。
- 404页面 = 404.php
- 存档模板= archive.php
- 存档索引页面 = archives.php
- 评论模板 = comments.php
- 页面页脚模板 = footer.php
- 页面页眉模板 = header.php
- 链接 = links.php
- 主页面模板 = index.php
- 静态页面模板 = page.php
- 弹出型评论模板= comments-popup.php
- 单篇文章模板= single.php
- 搜索栏 = searchform.php
- 搜索结果模板 = search.php
- 侧栏 = sidebar.php
- 式样文件 = style.css
有关于WordPress如何调用这些模板以及顺序,见模版的层次结构。
[编辑]
Theme Tools and Other Resources
这些工具和资源将会帮助你更好的创建和使用主题。
[编辑]
Layout
- Blog Design and Layout
- Stepping Into Templates
- Customizing Your Sidebar
- Good Navigation Links
- Next and Previous Links
- Styling Lists with CSS
- Creating Horizontal Menus
- Dynamic Menu Highlighting
- FAQ Layout and Design
- WordPress Index Builder
- Photoshop Template for the WordPress Default Theme
[编辑]
Templates and Template Tags
- Template Files
- Stepping Into Templates
- Stepping Into Template Tags
- Template Tags
- Developing WordPress Themes
- The Loop in Action
- Template Tag Layout in simple to read form
- Anatomy of a WordPress Theme
- Templates and the is functions
- Dissection of a WordPress Theme
[编辑]
Tools and Resources
- Designing Themes for Public Release
- Know Your Sources
- Validating a Website
- Finding Your CSS Styles
- CSS Fixing Browser Bugs
- WordPress Design Sandbox Article
- Working On CSS and the WordPress Theme (using a sandbox)
- From XHTML CSS to WordPress (making a Theme}
[编辑]
