[wp-trac] [WordPress Trac] #51786: Accessibility issue with the logo on the login page
WordPress Trac
noreply at wordpress.org
Thu Dec 10 21:39:55 UTC 2020
#51786: Accessibility issue with the logo on the login page
------------------------------------+-----------------------------
Reporter: roytanck | Owner: (none)
Type: enhancement | Status: new
Priority: normal | Milestone: Future Release
Component: Login and Registration | Version:
Severity: normal | Resolution:
Keywords: | Focuses: accessibility
------------------------------------+-----------------------------
Comment (by sabernhardt):
@roytanck Until there's a better option, I recommend using these two
filters and replacing the logo image with CSS.
{{{#!php
function sab_login_logo_url() {
return home_url( '/' );
}
add_filter( 'login_headerurl', 'sab_login_logo_url' );
function sab_login_logo_text() {
return get_bloginfo( 'name' );
}
add_filter( 'login_headertext', 'sab_login_logo_text' );
}}}
The Site Title would fit as link text for a link to the home page, and it
would work well enough as a heading.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/51786#comment:10>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list