将网站logo链接替换为指定URL

本文共295 个字, 需约1 分钟阅读。本文最后更新时间为2024年11 月2日, 部分内容具有时效性,如有失效请留言告知,阅读量:794 阅读


对子比主题的logo有特殊要求的朋友,可以手动修改代码

查找替换:

/zibll/inc/functions/zib-header.php

Ctrl/command +F :

html
$logo = '<a class="navbar-logo" href="' . get_bloginfo('url') . '">'
html

整行替换为:

html
$logo = '<a class="navbar-logo" href="https://your-url">'
html

其中:“https://your-url” 最好在浏览器地址栏复制黏贴,并注意没有最后的“/”

全篇结束