• Resolved Robert Oller

    (@robert-oller)


    Hi all,

    Does anyone know a filter hook to edit the “Back to” / #backtoblog link? I know I can do this adding Javascript to the header, but I’d prefer to do this in PHP.

    Suggestions?

    Thanks in advance!
    – Rob

Viewing 1 replies (of 1 total)
  • Thread Starter Robert Oller

    (@robert-oller)

    For anyone that comes across this, at this point (WP 3.6.1) there is not a specific filter hook for the #backtoblog link, which is totally fine.

    I ended up using jQuery/Javascript:

    add_action('login_head', 'My_Function_login_head');
    function My_Function_login_head() {
    	echo '<script type="text/javascript">
    			jQuery(document).ready(function($) {
    				anchor = document.getElementById( "backtoblog" ).getElementsByTagName( "a" )[0];
    				anchor.innerText = "My New Text";
    			});
    		</script>';
    }
Viewing 1 replies (of 1 total)
  • The topic ‘Login page, how to edit "Back to" #backtoblog link’ is closed to new replies.