Custom address bar logo:
effect:
achieve:
First, choose a picture of their choice, and then on the site: https://tool.lu/favicon/ picture format into ioc
Then save the picture after the format, and then upload to your blog in the file:
This blog logo address: https: //files.cnblogs.com/files/fangzhiyou/favicon.ico
Code (code to paste into the footer, you need to have permission JS):
<!-- 更换地址栏logo --> <script type="text/javascript" language="javascript"> //Setting ico for cnblogs var linkObject = document.createElement('link'); linkObject.rel = "shortcut icon"; linkObject.href = "你的图片的url"; document.getElementsByTagName("head")[0].appendChild(linkObject); </script>
(PS:如果不成功的话,注意检查url是否正确,是以http://files.cnblogs.com/files/开头的。或者检查代码是否编码错误)