• Resolved vinojraj

    (@vinojraj)


    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 4 replies - 1 through 4 (of 4 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, 3 months ago by vinojraj.

    Hi @vinojraj,

    Thanks for reaching out!
    Unfortunately with the plugin you cannot change the link ‘back to website name’ found in the login.php page. You also cannot add a custom text + link/button at the moment in the page, I’m sorry.

    Can you please send me the site’s url so I can take a look and see what broke?

    Warmly,
    Mihaela

    Thread Starter vinojraj

    (@vinojraj)

    Now I changed it back and hide the option. That code would try to login me into the link I had put for ‘back to website name’.

    https://channelpartner.stjudesindia.in

    I apologies for the delayed response! I missed your reply!
    I went ahead and opened a ticket regarding this. You can follow it here: https://github.com/ColorlibHQ/colorlib-login-customizer/issues/124

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘How to change the link of -Back to- on Login.php page’ is closed to new replies.