admin管理员组文章数量:1317915
I have added this code into my theme Customization and also Simple Custom CSS plugin
.wp-core-ui #login .button-primary {
background: #7e0001 !important;
background-image: none !important;
border-color: #7e0001;
}
For the life of me I cannot that code override the 'default blue' of the WordPress login button. The only plugin that works is "Login Press" which seems to use the exact same CSS as me, but somehow WordPress pays attention to it and not my theme CSS. I don't need to style the whole thing I just want to colorize the damn button.
Is it me? Is it GoDaddy WordPress Managed hosting?
I have added this code into my theme Customization and also Simple Custom CSS plugin
.wp-core-ui #login .button-primary {
background: #7e0001 !important;
background-image: none !important;
border-color: #7e0001;
}
For the life of me I cannot that code override the 'default blue' of the WordPress login button. The only plugin that works is "Login Press" which seems to use the exact same CSS as me, but somehow WordPress pays attention to it and not my theme CSS. I don't need to style the whole thing I just want to colorize the damn button.
Is it me? Is it GoDaddy WordPress Managed hosting?
Share Improve this question asked Oct 31, 2020 at 6:41 user2680925user2680925 1032 bronze badges 01 Answer
Reset to default 1The login page doesn't load your theme's stylesheet.
If you want to include extra CSS on your login page then you should hook login_enqueue_scripts and write out an extra <style>
tag there, or include another CSS file (or even your theme's full CSS file if you want to).
You could also use login_head, and there's an example of including another CSS file in the login_head documentation, but it sounds like login_enqueue_scripts is more correct.
本文标签: Cannot changing login button colorhave tried themeplugins is it GoDaddy managed
版权声明:本文标题:Cannot changing login button color, have tried theme, plugins... is it GoDaddy managed? 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1742024559a2415297.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论