WordPress博客如何添加收藏书签(wordpress,)

时间:2024-05-02 09:00:42 作者 : 石家庄SEO 分类 :
  • TAG :

1、打开你的WordPress主题文件夹下single.php

2、找到<?php the_content(); ?>,在下面加上以下代码(就是书签的显示位置,或者放到你觉得合适的地方):

<divid="soucang"><strong> <spanstyle="color:#9932CC">收藏</span><spanstyle="color:#57c200">&</span> <spanstyle="color:#9932CC">分享</span></strong><ul><liid="kaixin"> <ahref="http://www.kaixin001.com/repaste/share.php?rtitle=<?phpechourlencode($post->post_title);?>&rurl=<?phpechourlencode(get_permalink($post->ID));?>&rcontent=<?php$desc=strip_tags($post->post_excerpt);echourlencode($desc);?>"title="转贴到开心网"rel="nofollow"><span></span></a></li><liid="jiudian"> <atitle="推荐到九点"href="http://www.douban.com/recommend/?url=<?phpechourlencode(get_permalink($post->ID));?>&title=<?phpechourlencode($post->post_title);?>"rel="nofollow"><span></span></a></li><liid="douban"> <atitle="推荐到豆瓣"href="http://www.douban.com/recommend/?url=<?phpechourlencode(get_permalink($post->ID));?>&title=<?phpechourlencode($post->post_title);?>"rel="nofollow"><span></span></a></li><liid="yahoo"> <atitle="雅虎收藏"href="http://myweb.cn.yahoo.com/popadd.html?url=<?phpechourlencode(get_permalink($post->ID));?>&title=<?phpechourlencode($post->post_title);?>"rel="nofollow"><span></span></a></li><liid="google"> <ahref="http://www.google.com/bookmarks/mark?op=edit&bkmk=<?phpechourlencode(get_permalink($post->ID));?>&title=<?phpechourlencode($post->post_title);?>"title="Google书签"rel="nofollow"><span></span></a></li><liid="baidu"> <ahref="http://cang.baidu.com/do/add?it=<?phpechourlencode($post->post_title);?>&iu=<?phpechourlencode(get_permalink($post->ID));?>"title="百度搜藏"rel="nofollow"><span></span></a></li><liid="qq"> <ahref="http://shuqian.qq.com/post?from=3&title=<?phpechourlencode($post->post_title);?>&uri=<?phpechourlencode(get_permalink($post->ID));?>"title="收藏到QQ书签"rel="nofollow"><span></span></a></li><liid="vivi"> <ahref="javascript:d=document;t=d.selection?(d.selection.type!='None'?d.selection.createRange().text:''):(d.getSelection?d.getSelection():'');void(vivi=window.open('http://vivi.sina.com.cn/collect/icollect.php?pid=www.ludou.org&title='+escape(d.title)+'&url='+escape(d.location.href)+'&desc='+escape(t),'vivi','scrollbars=no,width=480,height=480,left=75,top=20,status=no,resizable=yes'));vivi.focus();"title="保存到爱问ViVi收藏夹"><span></span></a></li> <liid="bolaa"> <ahref="javascript:d=document;t=d.selection?(d.selection.type!='None'?d.selection.createRange().text:''):(d.getSelection?d.getSelection():'');void(blog=window.open('http://www5.bolaa.com/CommendBlog/SmallLogin.aspx?title='+escape(d.title)+'&newspath='+escape(d.location.href)+'&subtitle='+escape(t),'bolaa','width=400px,height=400px'));blog.focus();"title="推荐到博拉"><span></span></a></li><liid="poco"> <ahref="javascript:d=document;t=d.selection?(d.selection.type!='None'?d.selection.createRange().text:''):(d.getSelection?d.getSelection():'');void(keyit=window.open('http://my.poco.cn/fav/storeIt.php?t='+escape(d.title)+'&u='+escape(d.location.href)+'&c='+escape(t)+'&img=http://www.h-strong.com/blog/logo.gif','keyit','scrollbars=no,width=475,height=575,status=no,resizable=yes'));keyit.focus();"title="收藏到POCO网摘"rel="nofollow"><span></span></a></li><liid="hexun"> <ahref="javascript:t=document.title;u=location.href;e=document.selection?(document.selection.type!='None'?document.selection.createRange().text:''):(document.getSelection?document.getSelection():'');void(open('http://bookmark.hexun.com/post.aspx?title='+escape(t)+'&url='+escape(u)+'&excerpt='+escape(e),'HexunBookmark','scrollbars=no,width=600,height=450,left=80,top=80,status=no,resizable=yes'));"title="转帖到和讯网摘"rel="nofollow"><span></span></a></li><liid="delicious"> <ahref="http://www.delicious.com/post?url=<?phpechourlencode(get_permalink($post->ID));?>&title=<?phpechourlencode($post->post_title);?>"title="deliciou"rel="nofollow"><span></span></a></li><liid="xianguo"> <scriptcharset="utf8"type="text/javascript"> cT="0";nc="#444";nBgc="";nBorder="#F5E5A9";tc="#649B00";tBgc="#FFF4D0";tBorder="#F5E5A9";tDigg="%E6%8E%A8%E8%8D%90";tDugg="%E5%B7%B2%E8%8D%90";defaultItemUrl="WEB_URL";defaultFeedUrl="http://feed.feedsky.com/ludou"; </script> <scripttype="text/javascript"charset="utf8"src="http://re.xianguo.com/api/diggthis.js"></script></li></ul></div>

3、注意将上面代码中www.ludou.org网址改成你的,接着在你的WordPress主题CSS文件中加入以下代码:

#soucang{ margin:15pxauto;}#soucangul{ display:inline; position:absolute;}#soucangli{ list-style:none; float:left; margin-right:10px; display:block;}#soucangliaspan{ /*请将下面的https://qixn-bj.oss-cn-beijing.aliyuncs.com/seosjz/uploadfile/all/gif/b010myt5tos.gif改成你自己的图片链接*/ background:url(https://qixn-bj.oss-cn-beijing.aliyuncs.com/seosjz/uploadfile/all/gif/b010myt5tos.gif)no-repeat; display:block; height:16px; width:16px;}#soucangli#baiduaspan{background-position:00;}#soucangli#bolaaaspan{background-position:0-17px;}#soucangli#deliciousaspan{background-position:0-34px;}#soucangli#doubanaspan{background-position:0-85px;}#soucangli#googleaspan{background-position:0-102px;}#soucangli#hexunaspan{background-position:0-119px;}#soucangli#jiudianaspan{background-position:0-136px;}#soucangli#kaixinaspan{background-position:0-153px;}#soucangli#pocoaspan{background-position:0-187px;}#soucangli#qqaspan{background-position:0-204px;}#soucangli#viviaspan{background-position:0-221px;}#soucangli#yahooaspan{background-position:0-238px;}#soucangli#xianguo{margin-left:10px;padding-bottom:5px;}

 </div> <div class="zixun-tj-product adv-bottom"></div> </div> </div> <div class="prve-next-news">
本文:WordPress博客如何添加收藏书签的详细内容,希望对您有所帮助,信息来源于网络。
上一篇:linux中lib指的是什么下一篇:

2 人围观 / 0 条评论 ↓快速评论↓

(必须)

(必须,保密)

阿狸1 阿狸2 阿狸3 阿狸4 阿狸5 阿狸6 阿狸7 阿狸8 阿狸9 阿狸10 阿狸11 阿狸12 阿狸13 阿狸14 阿狸15 阿狸16 阿狸17 阿狸18