0
我需要一些幫助來激活我的主題中的Wordpress菜單中的當前頁面。就像在我的這個網站上:http://hegeduoktatas.tk在Wordpress中突出顯示活動頁面菜單項
我試圖實現的代碼如下所示(代碼所做的事情並不有趣,我只是試圖工作,之後我會對其進行自定義):
.main-navigation .current-menu-item a{
color: #ffd696;
background: #632818;
}
.main-navigation .current_page_item a{
text-decoration:underline;
background:#666;
}
我試着用Firebug和檢查員找到我的菜單的確切類/ ID,因爲我懷疑它可能是問題,我嘗試了無數的解決方案,但沒有成功。我甚至會關注WPCodex上的current-menu-item功能,但仍然無法完成。
我的網站是:http://classwebdesign.hu/testing/
任何幫助,不勝感激!