站长百科 | 数字化技能提升教程 数字化时代生存宝典
首页
数字化百科
电子书
▼
建站程序
开发
服务器
办公软件
开发教程
▼
服务器教程
软件使用教程
运营教程
热门电子书
▼
CSS教程
WordPress教程
导航
程序频道
推广频道
网赚频道
人物频道
网站程序
网页制作
云计算
服务器
CMS
论坛
网店
虚拟主机
cPanel
网址导航
WIKI使用导航
WIKI首页
热点词条
最新资讯
网站程序
站长人物
页面分类
使用帮助
编辑测试
创建条目
网站地图
站长百科导航
站长百科
主机侦探
IDCtalk云说
跨境电商导航
WordPress啦
站长专题
网站推广
网站程序
网站赚钱
虚拟主机
cPanel
网址导航专题
云计算
微博营销
虚拟主机管理系统
开放平台
WIKI程序与应用
美国十大主机
编辑“
WordPress:Customizing Your Sidebar
”(章节)
人物百科
|
营销百科
|
网赚百科
|
站长工具
|
网站程序
|
域名主机
|
互联网公司
|
分类索引
跳转至:
导航
、
搜索
警告:
您没有登录。如果您做出任意编辑,您的IP地址将会公开可见。如果您
登录
或
创建
一个账户,您的编辑将归属于您的用户名,且将享受其他好处。
反垃圾检查。
不要
加入这个!
==按钮和图标== People enjoy listing their links and accomplishments in their sidebar highlighted by buttons and icons. Instead of listing a text link that proves your site has [[WordPress:Validating_a_Website|valid XHTML or CSS]], you can create a link using the icon "awarded" to sites which pass the test. If your site has won an award, or is part of a webring, or is a member of a group, you can provide a graphic link to show that off, too. You can even use graphics to create links to your RSS feeds. 人们喜欢在边栏中列出链接及相关内容,通过按钮和图标突出边栏。你可以使用通过测试的站点"得到的"图标,来创建链接,而不是列出链接文本证明你的站点拥有[[WordPress:Validating_a_Website|有效的XHTML或者CSS]]。如果你的站点获得了奖励,或者是webring的一部分,或者是小组成员的一部分,你也可以提供图形链接显示这一点。你甚至可以使用图形创建链接,链接到你的RSS feeds。 The WordPress Default and Classic Themes provide a text link to validate your site. It looks like this: WordPress默认和经典主题提供了链接文本,来证明你的站点。这个文本看起来像: <pre><li><a href="http://validator.w3.org/check/referer" title="This page validates as XHTML 1.0 Transitional"> Valid <abbr title="eXtensible HyperText Markup Language">XHTML</abbr></a></li></pre> <pre><li><a href="http://validator.w3.org/check/referer" title="这个网页证实为 XHTML 1.0 Transitional"> Valid <abbr title="eXtensible HyperText Markup Language">XHTML</abbr></a></li></pre> To replace the link with a graphic link, like the "Valid XHTML" icon, copy the icon to your site and try the following example, changing the file name and folders to match your site: 要使用图形链接来替换链接,像"有效的 XHTML"图标,将图标复制到你的站点上并且尝试下面的例子,更改文件名和文件夹,以匹配你的站点: <pre><li><a href="http://validator.w3.org/check/referer" title="This page validates as XHTML 1.0 Transitional"><img src="http://example.com/graphics/icons/valid-xhtml10.gif" alt="Valid XHTML 1.0!" height="31" width="88" /></a></li></pre> <pre><li><a href="http://validator.w3.org/check/referer" title="这个网页确认为 XHTML 1.0 Transitional"><img src="http://example.com/graphics/icons/valid-xhtml10.gif" alt="Valid XHTML 1.0!" height="31" width="88" /></a></li></pre> The same technique can be used to highlight an award your site has won or any other graphic link: 同样的方法也可以用来突出你的站点得到的奖励或者其它的图形链接: <pre><li><a href="http://example2.com/" title="Award Winning Site Awards"><img src="http://example.com/graphics/icons/award42.gif" alt="Award for Award Winning Site" height="50" width="50" /></a></li></pre> <pre><li><a href="http://example2.com/" title="Award Winning Site Awards"><img src="http://example.com/graphics/icons/award42.gif" alt="Award for Award Winning Site" height="50" width="50" /></a></li></pre> Linking to graphics for [[WordPress:Introduction_to_Blogging#Feeds|Feeds]] is a little different from putting graphics in links. WordPress uses [[WordPress:Template Tags]] to display and coordinate feeds within a WordPress site. Without a graphic, a link to a RSS 2.0 Feed looks like this: 链接到[[WordPress:Introduction_to_Blogging#Feeds|Feeds]]的图形与将图形放入链接中有所不同。WordPress使用[[WordPress:Template Tags|模板标签]]显示并且整理WordPress站点内的feeds。没有图像,一个链接到RSS 2.0 Feed的链接看起来像: <pre><li><a href="feed:<?php bloginfo('rss2_url'); ?>" title="<?php _e('Syndicate this site using RSS'); ?>"> <?php _e('<abbr title="Really Simple Syndication">RSS</abbr>'); ?> </a></li></pre> <pre><li><a href="feed:<?php bloginfo('rss2_url'); ?>" title="<?php _e('Syndicate this site using RSS'); ?>"> <?php _e('<abbr title="Really Simple Syndication">RSS</abbr>'); ?> </a></li></pre> The template tag [[WordPress:Template_Tags/bloginfo|bloginfo()]] has parameters for the different feeds so you don't have to come up with the URL yourself. It's automatic. Now, let's replace the text with a graphic. 模板标签[[WordPress:Template_Tags/bloginfo|bloginfo()]]拥有不同的feeds的参数,这样你不需要自己提供URL。这是自动供应的。显示,我们用图形替换文本。 It used to be common that Feeds were identified by an orange colored box, but now, RSS Feeds can look like anything, but they tend to have a common look so they are identifiable from site to site. They feature a horizontal box with two "columns" of color, one bright and one light, saying '''RSS|FEED''' or '''RSS|Valid'''. You can make it say whatever you want, as long as it points your visitors towards this feature. [http://www.feedforall.com/public/rss-graphic-tool.htm Feedforall's DYI Feed Graphic Designer] allows you to easily design your own feed icon. 通常Feed是由橘红色的框识别的,但是现在,RSS Feeds可以看起来像任何东西,但是RSS Feeds一般有一个共同的外观,这样在不同的站点上可以得到确认。RSS Feeds拥有一个横向的框,有用两"栏"颜色,一个明亮,一个暗淡,显示'''RSS|FEED''' 或者'''RSS|Valid'''。你可以将这个放在任何位置,只要向你的放个指向这个功能即可。[http://www.feedforall.com/public/rss-graphic-tool.htm Feedforall's DYI Feed Graphic Designer]能够使你轻易地设计自己的feed图标。 The [http://feedicons.com/ Feed Icons] site provides graphical icons using the icon created by the Mozilla Foundation and later adopted by Microsoft. A graphical icon helps avoid some of the issues currently associated with the wide variety of text-based icons. [http://feedicons.com/ Feed 图标]站点提供了图形图标,使用Mozilla Foundation以及以后由Microsoft上传的图标。图形图标能够避免一些问题,当前很多以文本为基础的图标可能都会有这些问题。 To use a different icon, here is how it might look: 要使用一个不同的图标,下面是图标可能出现的外观: <pre><li><a href="feed:<?php bloginfo('rss2_url'); ?>" title="<?php _e('Syndicate this site using RSS'); ?>"> <img src="http://example.com/graphics/icons/rssfeed20.gif" alt="RSS Feed 2.0" height="20" width="75" /></a></li></pre> <pre><li><a href="feed:<?php bloginfo('rss2_url'); ?>" title="<?php _e('Syndicate this site using RSS'); ?>"> <img src="http://example.com/graphics/icons/rssfeed20.gif" alt="RSS Feed 2.0" height="20" width="75" /></a></li></pre> We've given you some examples of how to create graphic links, buttons, or icons in your sidebar, the rest is up to you. 我们向你显示了一些例子,关于怎样在你的边栏中创建图形链接,按钮,或者图标,其它的操作就取决于你自己了。
摘要:
请注意,您对站长百科的所有贡献都可能被其他贡献者编辑,修改或删除。如果您不希望您的文字被任意修改和再散布,请不要提交。
您同时也要向我们保证您所提交的内容是您自己所作,或得自一个不受版权保护或相似自由的来源(参阅
Wordpress-mediawiki:版权
的细节)。
未经许可,请勿提交受版权保护的作品!
取消
编辑帮助
(在新窗口中打开)