默認(rèn)織夢的首頁沒有設(shè)置高亮屬性,只要其他欄目可以。以下代碼可以解決這個(gè)問題:
默認(rèn)織夢導(dǎo)航欄目,首頁不可高亮,解決方案如下:
給a標(biāo)簽添加active類
首頁
currentstyle無效失效的修復(fù)辦法:修改include/taglib/channel.lib.php?? -----》
133行。if( ($row['id']==$typeid || ($topid==$row['id'] && $type=='top') ) && $currentstyle!='' )
修改為? if( ($row['id']==$refObj->TypeLink->TypeInfos['id'] || ($topid==$row['id'] && $type=='top') ) && $currentstyle!='' )文章來源:http://www.zghlxwxcb.cn/news/detail-432666.html
以上就是本文的全部內(nèi)容,希望對大家的學(xué)習(xí)有所幫助,也希望大家多多支持yii666。文章來源地址http://www.zghlxwxcb.cn/news/detail-432666.html
到了這里,關(guān)于解決織夢DEDE導(dǎo)航欄默認(rèn)首頁無法高亮的問題的文章就介紹完了。如果您還想了解更多內(nèi)容,請?jiān)谟疑辖撬阉鱐OY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!