站长百科 | 数字化技能提升教程 数字化时代生存宝典
首页
数字化百科
电子书
▼
建站程序
开发
服务器
办公软件
开发教程
▼
服务器教程
软件使用教程
运营教程
热门电子书
▼
CSS教程
WordPress教程
导航
程序频道
推广频道
网赚频道
人物频道
网站程序
网页制作
云计算
服务器
CMS
论坛
网店
虚拟主机
cPanel
网址导航
WIKI使用导航
WIKI首页
热点词条
最新资讯
网站程序
站长人物
页面分类
使用帮助
编辑测试
创建条目
网站地图
站长百科导航
站长百科
主机侦探
IDCtalk云说
跨境电商导航
WordPress啦
站长专题
网站推广
网站程序
网站赚钱
虚拟主机
cPanel
网址导航专题
云计算
微博营销
虚拟主机管理系统
开放平台
WIKI程序与应用
美国十大主机
编辑“
WordPress:Designing Themes for Public Release
”(章节)
人物百科
|
营销百科
|
网赚百科
|
站长工具
|
网站程序
|
域名主机
|
互联网公司
|
分类索引
跳转至:
导航
、
搜索
警告:
您没有登录。如果您做出任意编辑,您的IP地址将会公开可见。如果您
登录
或
创建
一个账户,您的编辑将归属于您的用户名,且将享受其他好处。
反垃圾检查。
不要
加入这个!
==保存 Core References== '''Do not remove "default" WordPress CSS references!''' '''不要移除"默认" WordPress CSS references!''' Okay, after making it clear that designers are free to do whatever they want as long as it validates, and that these are only guidelines and not rules, we admit it, we lied a little. 弄清楚之后,设计人员可以自动地做想做的事,只要有效即可,而且只会看到指导方针而不是规则,我们认可这一点,几乎全是真的。 User-friendly is the key to designing WordPress Themes. Part of that friendliness is to keep the default elements of code within the [[WordPress:Templates]] and [[WordPress:CSS]] files and design these to change their look, but not to remove the code references. You can hide them, but don't remove them. 用户友好性是设计WordPress主题的核心。友好的一部分是指将代码的默认元素保持在[[WordPress:Templates|模板]]和 [[WordPress:CSS|CSS]]内部,设计这些元素,更改主题的外观,但是不移除code reference。你可以隐藏code reference,但是不可以移除。 For example, in the WordPress default Theme, the Theme's author made some decisions about removing the author tag from the post (it's your blog so why would you have to keep telling people you wrote it) and the calendar. If you look at the code for the calendar, it is still there, just [[WordPress:Commenting_Code|commented out]], so if the next user wants to feature a calendar, they can. The styles for the calendar are still in the style sheet so it won't look bad if enabled. 例如,在WordPress默认主题中,主题的作者做出一些决定,将作者标签从文章(这是你的博客,那么为什么不即时地告诉他人,你写了文章呢)和日历中删除。如果你查看日历中的代码,代码还在那里,只要[[WordPress:Commenting_Code|commented out]],这样如果下一个用户想要设置日历的功能,就能够设置了。日历的样式仍然在样式表中,这样如果有日历的话,看起来也不错。 Just because you like some detail or not, leave the core coding in to accommodate the various needs of the users. 因为你喜欢一些详细信息,或者不喜欢,将核心代码保留,适应不同用户的需求。 To ensure smooth transition for [[WordPress:WordPress Localization|language localization]], use the <tt>_e()</tt> function for ''echoing'' titles and headings within the template files. This makes it easier for the translation files to hook in and translate the titles into the site's language. 确保[[WordPress:WordPress Localization|语言本地化]]平稳变换,为模板文件内的''echoing''标题和标头使用<tt>_e()</tt>函数。这样,翻译的文件hook in,将标题翻译为站点的语言变得更加简单。 As you modify the styles, if you tread into the template files, make sure that <tt><nowiki><div id="header"></nowiki></tt> stays that way. Don't change it to <tt><nowiki><div id="fred"></nowiki></tt> just because you think "post" is boring and you always named your header section <tt>fred</tt>. If you are adding a fourth column, or a new division or class identifier, you can name it anything you want, but make a note in the style sheet and template file that these are additions to the default. 你更改样式的时候,如果你进入模板文件,确定<tt><nowiki><div id="header"></nowiki></tt>保持那种方式。不要将它更改为<tt><nowiki><div id="fred"></nowiki></tt>,只是因为你认为"文章" 无趣,而且你经常地命名标题部分<tt>fred</tt>。如果你添加了第四个栏,或者一个新的部分或者class标示符,你可以命名任何你想要命名的内容,但是在样式表和模板文件上做记录,记录这些命名是默认设置的额外内容。 When adding references to new elements in the style sheet, it's recommended to isolate them from the default references so they are highlighted or make a note of them if they are grouped with related elements like the structure, helping people identify them more quickly. This also highlights the uniqueness of your design by showing off your style codes. 当给样式表中的新内容添加references的时候,建议你将其与默认references相隔离,这样会突出新加的references或者如果这些references与相关的内容,如结构结合在一起,就将这些references记录下来,帮助人们更快地识别这些references。通过显示样式代码,也突出了你的设计的独特性。 Again, these are things designers for contests and public consumption need to worry about. Everyone else tweaking their sites for their own use can do anything they want - and will! 还有一些为竞赛或者公众使用的主题的开发人员需要考虑的一些事情。其他的建立站点自己使用的设计人员,可以做任何喜欢做的事情-而且能够做!
摘要:
请注意,您对站长百科的所有贡献都可能被其他贡献者编辑,修改或删除。如果您不希望您的文字被任意修改和再散布,请不要提交。
您同时也要向我们保证您所提交的内容是您自己所作,或得自一个不受版权保护或相似自由的来源(参阅
Wordpress-mediawiki:版权
的细节)。
未经许可,请勿提交受版权保护的作品!
取消
编辑帮助
(在新窗口中打开)