begin主题首页友链加上博客favicon图标

夏沫
192
文章
13
评论
2020年6月26日11:03:57
评论
12.1K 325字阅读1分5秒

为begin主题首页小伙伴友链处加上网站的favicon图标,看到鸟叔的网站带有了,自己也搞一个,没鸟叔的代码好。begin主题首页友链加上博客favicon图标

教程:把下面代码加到主题页脚文件。

代码:

 
  1. <script>jQuery(document).ready(function($){  
  2.  $(".link-name a").each(function(e){  
  3.    $(this).prepend("<img src=https://m.seovx.com/api/ico/?url="+this.href.replace(/^(http:\/\/[^\/]+).*$/, '$1').replace( 'http://', '' )+">");  
  4.  });}); </script>  
  • 我的微信
  • 微信扫一扫
  • weinxin
  • 我的微信公众号
  • 微信扫一扫
  • weinxin
  • 本文由 发表于 2020年6月26日11:03:57
  • 除非特殊声明,本站文章均为原创,转载请务必保留本文链接
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen: