站长百科 | 数字化技能提升教程 数字化时代生存宝典
首页
数字化百科
电子书
▼
建站程序
开发
服务器
办公软件
开发教程
▼
服务器教程
软件使用教程
运营教程
热门电子书
▼
CSS教程
WordPress教程
导航
程序频道
推广频道
网赚频道
人物频道
网站程序
网页制作
云计算
服务器
CMS
论坛
网店
虚拟主机
cPanel
网址导航
WIKI使用导航
WIKI首页
热点词条
最新资讯
网站程序
站长人物
页面分类
使用帮助
编辑测试
创建条目
网站地图
站长百科导航
站长百科
主机侦探
IDCtalk云说
跨境电商导航
WordPress啦
站长专题
网站推广
网站程序
网站赚钱
虚拟主机
cPanel
网址导航专题
云计算
微博营销
虚拟主机管理系统
开放平台
WIKI程序与应用
美国十大主机
编辑“
WordPress:Design Theme Editor SubPanel
”
人物百科
|
营销百科
|
网赚百科
|
站长工具
|
网站程序
|
域名主机
|
互联网公司
|
分类索引
Fludlen
(
讨论
|
贡献
)
2008年8月7日 (四) 10:35的版本
(
差异
)
←上一版本
|
最后版本
(
差异
) |
下一版本→
(
差异
)
跳转至:
导航
、
搜索
警告:您正在编辑的是本页面的旧版本。
如果您发布该更改,该版本后的所有更改都会丢失。
警告:
您没有登录。如果您做出任意编辑,您的IP地址将会公开可见。如果您
登录
或
创建
一个账户,您的编辑将归属于您的用户名,且将享受其他好处。
反垃圾检查。
不要
加入这个!
==Manage → Files== ==管理 → 文件== There are many user editable files in a standard WordPress installation. Examples include your theme templates, .htaccess, and my-hacks.php. In this Files SubPanel, these files can be accessed and modified to suit your needs. 标准安装的WordPress中,有许多用户可以编辑的文件。这些例子包括你的主题模板,.htaccess。和my-hack.php、在这个文件子面板中,你可以访问这些文件,并且根据你的需求,来更改这些文件。 Back to [[WordPress:Administration Panels]]. 返回到[[WordPress:Administration Panels|管理面板]]。 ==Built-in File Editor== ==内置的文件编辑器== The Built-in File Editor allows you to view any file, and edit any file which is writeable (see [[WordPress:Changing File Permissions]]). At the bottom of the SubPanel is a box called "'''Other Files'''". By entering any file name in the text box here and clicking the "'''Edit file'''" button, the Built-in Editor can be used to view/edit that file. The large text box displays the contents of the selected file and allows you to modify those contents. 内置的文件编辑器能够使你访问任何文件,并且编辑任何可写的文件(请看看[[WordPress:Changing File Permissions|更改文件权限]])。在这个子面板的底部,有一个框,称为"'''其它的文件'''"。在这个文本框中输入任何文件名,并且点击"'''编辑文件'''"按钮,你就可以使用内置的编辑器来访问/编辑文件。大的文本框显示了所选择的文件的内容并且能够使你更改这些内容。 After editing a file's contents in the large text box, click the "'''Update File'''" button to save your changes. 在大的文本框中更改了文件的内容之后,请点击"'''上传文件'''"按钮,保存你更改的内容。 Additionally, the editor provides you with some handy links: 此外,编辑器向你提供了一些有用的链接。 ;Recent: The five most recent files you have viewed with the Built-in File Editor. ;最近的:你最近使用内置文件编辑器访问的五篇文章。 ;Common: A list of files that are common to your entire blog, no matter the [[WordPress:Using Themes|Theme]] you're using. Files include: [[WordPress:Glossary#.htaccess|.htaccess]] (see also [[WordPress:Introduction to Blogging#Notes on .htaccess files|this section]] of [[WordPress:Introduction to Blogging]], the Main Template for your blog (your blog's base index.php which is, by default, nearly empty), and [[WordPress:Miscellaneous Options SubPanel#my-hacks.php|my-hacks.php]]. This list will also include any legacy theme files from your base directory if you have any. ;常见的:不管你使用什么[[WordPress:Using Themes|主题]],这些文件列表,在你整个博客上,都很常见。文件包含有:[[WordPress:Glossary#.htaccess|.htaccess]] (也看看 [[WordPress:Introduction to Blogging|博客介绍]]中的[[WordPress:Introduction to Blogging#Notes on .htaccess files|这个部分]],你的博客的主要模板 (你的博客的基本的index.php,默认情况下,几乎是空白的)和 [[WordPress:Miscellaneous Options SubPanel#my-hacks.php|my-hacks.php]]。这个列表也包含你的基本目录中的legacy 主题文件,前提是你有这样的基本主题。 Some Caveats about the Built-in Editor: 关于内置编辑器的一些Caveats: *To edit a file, the permissions for that file must be set to 666. Use your FTP program to CHMOD 666 any files you wish to edit using the WordPress template editor. *要编辑一个文件,这个文件的权限必须设置为666。如果你想要使用WordPress模板编辑器编辑,请用你的FTP程序,将任何文件的权限设置为666。 *Changes you make are instant, and you do not need an ftp program after initially uploading the files and setting permissions. *你做的更改是即时的,而且上传好文件并且设置权限之后,你的确需要ftp程序。 *'''There is no backup''': a mis-edit may cost you necessary information. *'''没有文件备份''':错误地编辑,可能破坏了一些必要的信息。 *Making a mistake when editing your .htaccess file can take down your site, and with it the WordPress editor. Make sure you have ftp access when editing .htaccess (your rewrite rules) so you can delete the bad file if necessary. *使用WordPress编辑器编辑你的.htaccess文件,并且烦了错误,可能会使你的站点瘫痪。编辑.htaccess文件(你的重写规则)的时候,要确定你能够使用ftp,这样必要的话,你可以删除不好的文件。 ==Editing in General== ==一般的编辑== Take note of these file editing tips. They really are useful. Really. 记下这些文件编辑小贴士。这些贴士真的很有用。真的。 ===Good Practice=== ===良好的习惯做法=== Follow these simple suggestions. They are ''time savers''. 遵循这些简单的建议。这些建议能够''节省时间''。 ;Using the [[WordPress:#Built-in File Editor|Built-in WordPress editor]]: ;使用[[WordPress:#Built-in File Editor|内置 WordPress 编辑器]]: :*After you have selected the Template tag and the file you wish to edit, then before making any changes at all, right-click in the text box, choose 'Select All' then choose 'Copy'. Paste the highlighted text into a new text document on your computer then SAVE. '''That is your backup'''. :*你选择了模板标签和你想要编辑的文件之后,更改文件的任何内容之前,点击文本框,选择'全选'然后选择'复制'。将突出的文本复制到你的电脑上一个新的文本文档中,然后保存。'''这就是你的备份'''。 ;Using some [[WordPress:#Editors|other editor]]: ;使用一些[[WordPress:#Editors|其它的编辑器]]: :*Use your ftp program to download the file you wish to work on. :*使用你的ftp程序下载你要处理的文件。 :*If you will be making significant changes, then once the file is downloaded, '''COPY it, and work on the copy'''. That way, if you make any mistakes, you can easily go back to a working file. :*如果你想要大量地更改文件,那么文件下载后,'''复制文件,然后在复制本上更改文本'''。这样,如果你犯了什么错误,你可能轻易地返回到原文件。 :*Upload the file back to your server. :*将文件重新上传到你的服务器。 :*Alternately, you can copy and paste from the WP editor into your editor instead of downloading. This gives you the best of both worlds, but '''remember to make a backup'''. :*此外,你可以将文件从WP编辑器复制并且粘贴到你的编辑器,这样就不用下载文件了。这样你会获得两全其美的效果,但是'''记住,做一个文件备份'''。 ===Editors=== ===编辑器=== A list of editors people have used. Please note under what category they fall <tt>:)</tt> 人们已经使用的编辑器的列表。请注意这些编辑器属于哪个类别<tt>:)</tt> ====The Good==== ====The Good==== Recommended editors are: 推荐的编辑器有: *[http://www.pspad.com PSPad] (Windows - Freeware) *[http://www.barebones.com/index.shtml BBEdit] (Mac - $) *[http://www.crimsoneditor.com/ Crimson Editor] (Windows - Freeware) *Good old Windows Notepad *Whatever editor you use in linux or unix. No editor war here, please <tt>:)</tt> *[http://www.pspad.com PSPad] (Windows – 免费软件) *[http://www.barebones.com/index.shtml BBEdit] (Mac - $) *[http://www.crimsoneditor.com/ Crimson 编辑器] (Windows – 免费软件) *Good old Windows Notepad *不管你在linux或者unix中使用什么编辑器。请不要引起编辑器之间的互相抵触 <tt>:)</tt> ====The Bad==== ====The Bad==== Do NOT use these for editing your WordPress files at all. Ever. Really, don't: 不要使用这些编辑器来编辑你的WordPress文件。真的,不要: *Microsoft Word *ANY word-processor *Microsoft Word *任何文字处理软件 ====The Ugly==== ====The Ugly==== Use these only if you are ''very'' familiar with them: 只有你''非常''熟悉这些编辑器的情况下,才使用这些编辑器: *DreamWeaver - it's best to copy from the WP editor, replacing what DreamWeaver puts in new files by default. *DreamWeaver –最好从WP编辑器中复制内容,取代DreamWeaver默认情况下,放在新的文件中内容。 *FrontPage - watch out for extra code inserted by FrontPage, and don't try to use its built-in templates. *FrontPage –注意FrontPage插入的额外的代码,同时不要尝试使用FrontPage内置的模板。 Back to [[WordPress:Administration Panels]]. 返回到[[WordPress:Administration Panels|管理面板]]。
摘要:
请注意,您对站长百科的所有贡献都可能被其他贡献者编辑,修改或删除。如果您不希望您的文字被任意修改和再散布,请不要提交。
您同时也要向我们保证您所提交的内容是您自己所作,或得自一个不受版权保护或相似自由的来源(参阅
Wordpress-mediawiki:版权
的细节)。
未经许可,请勿提交受版权保护的作品!
取消
编辑帮助
(在新窗口中打开)