站长百科 | 数字化技能提升教程 数字化时代生存宝典
首页
数字化百科
电子书
▼
建站程序
开发
服务器
办公软件
开发教程
▼
服务器教程
软件使用教程
运营教程
热门电子书
▼
CSS教程
WordPress教程
导航
程序频道
推广频道
网赚频道
人物频道
网站程序
网页制作
云计算
服务器
CMS
论坛
网店
虚拟主机
cPanel
网址导航
WIKI使用导航
WIKI首页
热点词条
最新资讯
网站程序
站长人物
页面分类
使用帮助
编辑测试
创建条目
网站地图
站长百科导航
站长百科
主机侦探
IDCtalk云说
跨境电商导航
WordPress啦
站长专题
网站推广
网站程序
网站赚钱
虚拟主机
cPanel
网址导航专题
云计算
微博营销
虚拟主机管理系统
开放平台
WIKI程序与应用
美国十大主机
编辑“
WordPress:Upgrade 1.2 to 1.5
”(章节)
人物百科
|
营销百科
|
网赚百科
|
站长工具
|
网站程序
|
域名主机
|
互联网公司
|
分类索引
跳转至:
导航
、
搜索
警告:
您没有登录。如果您做出任意编辑,您的IP地址将会公开可见。如果您
登录
或
创建
一个账户,您的编辑将归属于您的用户名,且将享受其他好处。
反垃圾检查。
不要
加入这个!
=== 升级旧的模板 – 简单=== To turn your old template into a theme : 将你的旧的模板转变为主题: <ol> <li>Create a directory for your Theme in <tt>wp-content/themes</tt> such as <tt>wp-content/themes/mytheme/</tt>, all lowercase and one word.</li> <ol> <li>在<tt>wp-content/themes</tt> 中为你的主题创建一个目录,如<tt>wp-content/themes/mytheme/</tt>,是一个单词,而且都是小写字母。 </li> <li>Put your old <tt>index.php</tt> in the theme directory you just created</li> <li>将旧的<tt>index.php</tt>放入你刚刚创建的主题目录中。 </li> <li>Using a [[WordPress:Glossary#Text editor|text editor]], open it up to edit</li> <li>使用[[WordPress:Glossary#Text editor|文本编辑器]],打开文本编辑器,开始编辑</li> <li>Delete the <tt>wp-blog-header.php</tt> line at the top that says not to delete :)</li> <li>删除顶上方显示不要删除的<tt>wp-blog-header.php</tt> 行 :)</li> <li>Delete the <tt>wp-blog-header.php</tt> line at the top that says not to delete :)</li> <li>删除顶上方显示不要删除的<tt>wp-blog-header.php</tt> 行 :)</li> <li>Replace the following line: (or a similar CSS link)<br /> %%% <?php echo get_settings('siteurl'); ?>/wp-layout.css %%% <br /> With this:<br /> %%% <?php bloginfo('stylesheet_url'); ?> %%%</li> <li>Replace this:<br /> %%% <?php include(ABSPATH . 'wp-comments.php'); ?> %%% <br /> With this:<br /> %%% <?php comments_template(); ?> %%%</li> <li>将下面的行: (或者相似的 CSS 链接)<br /> %%% <?php echo get_settings('siteurl'); ?>/wp-layout.css %%% <br /> 替换为:<br /> %%% <?php bloginfo('stylesheet_url'); ?> %%%</li> <li将这个:<br /> %%% <?php include(ABSPATH . 'wp-comments.php'); ?> %%% <br /> 替换为:<br /> %%% <?php comments_template(); ?> %%%</li> <li>Copy your old stylesheet to your theme directory and name it <tt>style.css</tt></li> <li>将旧的样式表复制到你的主题目录中并且命名为<tt>style.css</tt></li> <li>Open <tt>style.css</tt> and add the following header (copy and paste this and then customize it): <li>打开 <tt>style.css</tt> 并且添加下面的标头(复制,粘贴,然后自定义这个标头): <pre> /* Theme Name: My Hawt Blog Theme URI: http://example.com/ Description: Best theme EVAR Version: 1.0 Author: Me Author URI: http://example.com/ */ </pre></li> <pre> /* 主题名: 我的 Hawt 博客 主题 URI: http://example.com/ 描述: 最好的主题 EVAR 版本: 1.0 作者: Me 作者 URI: http://example.com/ */ </pre></li> <li>Go to the <tt>Presentation</tt> tab of the admin interface</li> <li>If you see your Theme on the list, activate it. If you don't review these instructions to make sure you did them all right.</li> </ol> <li>进入管理界面的 <tt>Presentation</tt> 标签</li> <li>如果你在列表上看到了你的主题,激活这个主题。如果你没有阅读这些指示说明,请立马阅读。</li> </ol>
摘要:
请注意,您对站长百科的所有贡献都可能被其他贡献者编辑,修改或删除。如果您不希望您的文字被任意修改和再散布,请不要提交。
您同时也要向我们保证您所提交的内容是您自己所作,或得自一个不受版权保护或相似自由的来源(参阅
Wordpress-mediawiki:版权
的细节)。
未经许可,请勿提交受版权保护的作品!
取消
编辑帮助
(在新窗口中打开)