如何更改登录默认蓝色管理员颜色?

时间:2020-05-19 作者:hexaae

如何使用CSS更改Wordpress标准登录页面中选定按钮或复选标记的默认蓝色管理颜色?

Default blue selected button border and chekmark

这是默认的蓝色,我的意思是,用于选定的按钮边框和复选标记。。。我指的不是普通的按钮边框颜色,而是单击它或用于选中复选标记后它周围的颜色。。。

编辑:您可以忽略上图中显示的自定义设置。标准Wordpress登录是相同的,并使用我想更改的默认蓝色作为登录/丢失通行证页面中的按钮轮廓和复选标记:

enter image description here

1 个回复
SO网友:Tasha Banks

试试这个

.wp-core-ui .button-primary.focus, .wp-core-ui .button-primary:focus {
    box-shadow: 0 0 0 1px #fff, 0 0 0 0px #007cba !important;
}
或者将颜色替换为与您的背景相匹配的颜色:

#007cba

相关推荐

从5.2.0版开始不推荐使用LOGIN_Headertitle

朋友们,我有个问题。当我进入wordpress中的默认logn页面时,我看到了这个错误:Notice: login_headertitle is deprecated since version 5.2.0! Use login_headertext instead. Usage of the title attribute on the login logo is not recommended for accessibility reasons. Use the link text instead.