Your address will show here +12 34 56 78

This topic contains 2 replies, has 1 voice, and was last updated by  Matt 3 years, 1 month ago.

  • Author
  • #74263


    I am hoping you can help me with this as it is a custom request…

    Using the Login Widget on a page, though I am not using the My Profile page. I would like to redirect upon success login to a different page, though I can not for the life of me find that link in the coding.

    Any chance you can point me in the right direction??

    Thanks in advance!!

  • #80592


    The redirect happens in javascript (since the whole login system is via ajax). To change the redirect page you need go into functions.php and change value of “login_redirect” attached to control.js file (is at line 305).

    You can either type the address directly at that line or you can change the value of $login_redirect = get_dashboard_profile_link(); (at line 265).

    This change will affect all the logins systems(not only the widget one). If you want only for widget one you need to clone and them modify (in control.js) the function wpestate_login_wd . The function is at line 1118 and for widget is called at line 1107.

    Thanks you and good luck

  • #80793


    You guys are the best!

    Worked like a charm! Thank you!! 😀

You must be logged in to reply to this topic.