建站代码网

热门标签

织梦dedecms将面包屑导航中的首页换成图片的方法

打开 /include/typelink.class.php 文件
找到
function GetPositionlink($islink=true)
    {
        if ( defined('DEDEMOB') )
        {
            $indexpage = "<a href='index.php'>".$this->indexName."</a>";
        } else{
            $indexpage = "<a href='".$this->indexUrl."'>".$this->indexName."</a>";
        }

修改为
function GetPositionlink($islink=true)
    {
        if ( defined('DEDEMOB') )
        {
            $indexpage = "<a href='index.php'>".
"<img src="data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20480%20640'%3E%3C/svg%3E" loading='lazy' data-lazy-src="http://1.com/skin/default/image/nopic.gif" class="cmsjzy" alt="Home">"."</a>";
        } else{
            $indexpage = "<a href='".$this->indexUrl."'>".
"<img src="data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20480%20640'%3E%3C/svg%3E" loading='lazy' data-lazy-src="http://1.com/skin/default/image/nopic.gif" class="cmsjzy" alt="Home">"."</a>";
        }
X