• Theme Codename H 安装及修改指导

    日期:2009.04.26 | 分类:WordPress | 标签:

    Theme Codename H 与其他 Wordpress 主题的安装方法相同:下载 -> 解压 -> 上传至 wp-content/themes/ -> Wordpress 后台启用主题。我在这篇中主要列出可以修改的代码位置,不修改也不影响正常使用。

    1. 广告代码

    Theme Codename H 中的广告代码共有三处,分别在:

    • sidebar.php 第 26 – 31 行
    • ads.php 第 1- 3 行
    • 404.php 第 29 行

    请注意:将“请插入自己的广告代码”替换为自己的广告代码。

    2. 站点统计分析服务代码

    • functions.php 第 3 行

    请将 <!– Analytics Codes –> 替换为服务商提供的代码。

    3. Twitter 模块

    • sidebar.php 第 9 – 12 行
    • footer.php 第 10 -12 行

    请将其中的 Picturepan2 替换为自己的 Twitter 帐号名;若不使用请将上述 sidebar.php 第 9 – 12 行和 footer.php 第 10 -12 行删除即可。

    4. Windows Live IM Control, Windows Live Translator 的链接

    • header.php 第 27 – 28 行

    访问这里设置是否启用 IM Control,并将 IM Control 的链接替换为自己的;若不启用 Windows Live IM Control ,Windows Live Translator 删除该两行即可。

    5. Windows Live Alerts

    • widget-feeds.php 第 5 行

    访问 Windows Live Alerts 创建 Alerts,将 widget-feeds.php 第 5 行的链接替换为自己的;若不使用 Windows Live Alerts 删除该行。

    6. 分享页面模板

    • share.php 第 28 行

    将 url: ‘http://feed.livesino.net’ 中的地址替换为自己的 Lifestream RSS 地址或者 Google Reader 分享输出地址等皆可。该页面模板基于 Google AJAX Feed API

    7. 404 错误页面

    • 404.php 第 14 -15 行

    请将这两个链接修改为能够帮上访客离开 404 错误的链接,或者增加更多链接。

    8. 底部信息

    • footer.php 第 5 行