【问题标题】:Active Menu Item background remove wordpress活动菜单项背景删除 wordpress
【发布时间】:2021-05-22 06:07:24
【问题描述】:

我在 hobbinternational.com 网站上工作。当前页面(主页)的活动菜单项上出现灰色背景。我想删除活动菜单项的灰色背景。当我将鼠标悬停在所有菜单项上时,我只想要灰色背景。而已。谁能帮我吗? (我正在使用 Wordpress,主题 - Moody by Theme Move)

【问题讨论】:

    标签: wordpress menu


    【解决方案1】:

    在CSS下面添加

    .menu--primary .menu__container > li.current-menu-item > a {
        background-color: transparent !important;
    }
    

    【讨论】:

    • .menu--primary .menu__container > li.current-menu-item > a { background-color: transparent !important; }
    【解决方案2】:

    只需将此 CSS 添加到您的主题 style.css 文件中

    .menu--primary .menu__container > li > a:hover, .menu--primary .menu__container > li.current-menu-item > a {
        background-color: transparent;
    }

    【讨论】:

    • background-color: transparent !important; 试试这个
    • .menu--primary .menu__container > li.current-menu-item > a { background-color: transparent !important; }
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2014-05-21
    • 1970-01-01
    • 1970-01-01
    • 2021-03-01
    • 1970-01-01
    • 2011-07-01
    相关资源
    最近更新 更多