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

成长带走的不只是时光,还带走了那些不害怕失去的勇气。谢谢那些怀疑我的人,给我成长的洗礼,让我更加孤独。
打开 /include/typelink.class.php 文件
找到
function GetPositionLink($islink=true)
    {
        if ( defined('DEDEMOB') )
        {
            $indexpage = "<a rel="nofollow noopener noreferrer" href='index.php'>".$this->indexName."</a>";
        } else{
            $indexpage = "<a rel="nofollow noopener noreferrer" href='".$this->indexUrl."'>".$this->indexName."</a>";
        }

修改为
function GetPositionLink($islink=true)
    {
        if ( defined('DEDEMOB') )
        {
            $indexpage = "<a rel="nofollow noopener noreferrer" href='index.php'>".
"<img src=\&;/style/cmsjzy.jpg\&; class=\&;cmsjzy\&; alt=\&;Home\&;>"."</a>";
        } else{
            $indexpage = "<a rel="nofollow noopener noreferrer" href='".$this->indexUrl."'>".
"<img src=\&;/style/cmsjzy.jpg\&; class=\&;cmsjzy\&; alt=\&;Home\&;>"."</a>";
        }

到此这篇关于织梦dedecms将面包屑导航中的首页换成图片的方法就介绍到这了。若是时间允许,自己还会在哪些地方做得更好等等,只有坚持这样,你才可能有快速的进步。更多相关织梦dedecms将面包屑导航中的首页换成图片的方法内容请查看相关栏目,小编编辑不易,再次感谢大家的支持!

标签: 织梦 dedecms