GeoDirectory SupportHelp with Redirecting the login page – GeoDirectory Support https://wpgeodirectory.com/support/topic/help-with-redirecting-the-login-page/feed Sat, 24 Jan 2026 10:40:58 +0000 http://bbpress.org/?v=2.5.14-6684 en-US https://wpgeodirectory.com/support/topic/help-with-redirecting-the-login-page/#post-44456 <![CDATA[Help with Redirecting the login page]]> https://wpgeodirectory.com/support/topic/help-with-redirecting-the-login-page/#post-44456 Thu, 02 Jul 2015 15:15:42 +0000 veneuphoria I am trying to Redirect the log in page becasue I added BuddyPress. I followed the direction here https://wpgeodirectory.com/docs/redirecting-the-login-page/

I have avada. I do not have a child theme folder. I have tried adding a child theme folder and a new functions.php to it.

/veneuphoria.org/wp-content/themes/GDF_Child/functions.php

I added this exact text to the functions.php (this is the entire document):


<?php

add_action(‘init’ , ‘geodir_redirect_to_default_login’) ;
function geodir_redirect_to_default_login()
{
if(isset( $_REQUEST['geodir_signup']))
{
  wp_redirect(home_url().’/my-account’);
  exit();
}
}
?>

It does not work (site still working but function of changing the redirect does not change the login)

I have also tried adding it to the Functions.php in avada
/veneuphoria.org/wp-content/themes/Avada/functions.php

I added this exact text to that file right at the beginning of the php file as seen below starting at

/* added by me to overrride the login redirect*/

and ending before

class Avada {

<?php



/* Options Framework */
require_once( get_template_directory() . '/framework/admin/index.php' );

/**
 * The main theme class
 * Any additional assets, objects etc should be included and instantiated from here.
 * This is a work in progress and part of a larger rewrite that will happen over time.
 */

/* added by me to overrride the login redirect*/

    <?php

    add_action(‘init’ , ‘geodir_redirect_to_default_login’) ;
    function geodir_redirect_to_default_login()
    {
    if(isset( $_REQUEST['geodir_signup']))
    {
      wp_redirect(home_url().’/my-account’);
      exit();
    }
    }
    ?>

class Avada {

It still does not seem to work. What am I doing wrong

Thank you!

]]>
https://wpgeodirectory.com/support/topic/help-with-redirecting-the-login-page/#post-44460 <![CDATA[Reply To: Help with Redirecting the login page]]> https://wpgeodirectory.com/support/topic/help-with-redirecting-the-login-page/#post-44460 Thu, 02 Jul 2015 15:29:13 +0000 Paolo

A valid license is required to view this reply.

You may need to login

OR

Buy either a Membership or valid license for this product.

Thanks, Team GeoDirectory!

]]>
https://wpgeodirectory.com/support/topic/help-with-redirecting-the-login-page/#post-44466 <![CDATA[Reply To: Help with Redirecting the login page]]> https://wpgeodirectory.com/support/topic/help-with-redirecting-the-login-page/#post-44466 Thu, 02 Jul 2015 15:51:42 +0000 veneuphoria

A valid license is required to view this reply.

You may need to login

OR

Buy either a Membership or valid license for this product.

Thanks, Team GeoDirectory!

]]>
https://wpgeodirectory.com/support/topic/help-with-redirecting-the-login-page/#post-44469 <![CDATA[Reply To: Help with Redirecting the login page]]> https://wpgeodirectory.com/support/topic/help-with-redirecting-the-login-page/#post-44469 Thu, 02 Jul 2015 16:01:46 +0000 Paolo

A valid license is required to view this reply.

You may need to login

OR

Buy either a Membership or valid license for this product.

Thanks, Team GeoDirectory!

]]>
https://wpgeodirectory.com/support/topic/help-with-redirecting-the-login-page/#post-44484 <![CDATA[Reply To: Help with Redirecting the login page]]> https://wpgeodirectory.com/support/topic/help-with-redirecting-the-login-page/#post-44484 Thu, 02 Jul 2015 18:19:10 +0000 veneuphoria

A valid license is required to view this reply.

You may need to login

OR

Buy either a Membership or valid license for this product.

Thanks, Team GeoDirectory!

]]>
https://wpgeodirectory.com/support/topic/help-with-redirecting-the-login-page/#post-44487 <![CDATA[Reply To: Help with Redirecting the login page]]> https://wpgeodirectory.com/support/topic/help-with-redirecting-the-login-page/#post-44487 Thu, 02 Jul 2015 18:23:37 +0000 Paolo

A valid license is required to view this reply.

You may need to login

OR

Buy either a Membership or valid license for this product.

Thanks, Team GeoDirectory!

]]>