• Hello, I need help to change the link of back to website name found in the login.php page.
    can i just change the link without breaking anything?

    Also, Is there anyway to add custom text with link in that page below all other elements.

    thanks ??

Viewing 1 replies (of 1 total)
  • Thread Starter vinojraj

    (@vinojraj)

    Found this code in the forum, It changes the url but breaks the login. Please help!

    /**
     *  Modify the wp-login.php 'Back to' URL
     * 
     * @param String $url
     * 
     * @return String $url
     */
    function prefix_home_url( $url ) {
    
    	global $pagenow;
    
    	if( 'wp-login.php' === $pagenow ) {
    
    		$url = 'https://www.ads-software.com/support/topic/change-back-to-link-on-login/';
    
    	}
    
    	return $url;
    
    }
    add_filter( 'home_url', 'prefix_home_url' );
    • This reply was modified 4 years, 8 months ago by vinojraj.
Viewing 1 replies (of 1 total)
  • The topic ‘How to change the link of -Back to- on Login.php page’ is closed to new replies.