WordPress中的导航栏菜单按钮文本样式

huangapple go评论65阅读模式
英文:

Navbar menu button text styling in WordPress

问题

我想在向下滚动时保持“获取报价”按钮上的文本为白色。目前,它会与其他导航栏字体一起变成灰色。我需要使用自定义CSS来隔离这个按钮的文本,以便它始终为白色,但不影响导航栏菜单文本。

这是我目前用于菜单字体颜色的代码:

.menu-transparent .navbar .nav>li>a {
    color: #fff;
}
英文:

I want to keep the text in the Get Quote Button white on downward scrolling. Currently, it changes to grey along with the other navbar font. I need to isolate this button text using custom CSS so it is white at all times, but does not affect navbar menu text.

<website removed>

This is the code I am currently using for the menu font color.

.menu-transparent .navbar .nav&gt;li&gt;a {
    color: #fff;}

答案1

得分: 0

添加这个样式。

.menu-transparent .navbar-fixed-top.navbar.top-nav-collapse .nav > li.getquote > a { color: #fff !important;}
英文:

Add this style.

.menu-transparent .navbar-fixed-top.navbar.top-nav-collapse .nav &gt; li.getquote &gt; a { color: #fff !important;}

huangapple
  • 本文由 发表于 2020年1月6日 15:12:51
  • 转载请务必保留本文链接:https://go.coder-hub.com/59608033.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定