Login and Register Redirection

Home Forums WpStream Theme Theme Issues Login and Register Redirection

New Topic
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #103016
    Charles Musisi
    Participant

    Hello, i would like to redirect the Customer to a custom or certain page after login and registration but not redirecting them to My Account page ,using your theme, but i have checked all the functions.php but i can’t find the exact login code and registration, help me how can i do this, i have tried to use some external redirects but not work, is there any particular file i can use or a code snippet, Thank You.

    #103211
    admin
    Keymaster

    Hello,

    For login – go libs/css_js_include.php and at line 42 you have
    ‘login_redirect’ => get_permalink( get_option(‘woocommerce_myaccount_page_id’) ),

    http://prntscr.com/w4r739

    replace “get_permalink( get_option(‘woocommerce_myaccount_page_id’) ), ” with “http://yoursite.com/page”,

    Thank you

    #103221
    Charles Musisi
    Participant

    This is not correct am getting an Error and I would also like to redirect the user after Registration

    #103223
    Charles Musisi
    Participant

    Worked on it how do I redirect after User Registration, which code can I edit

    #103226
    Charles Musisi
    Participant

    Because when the user Registers, is again requested to go back to login page

    #103791
    admin
    Keymaster

    Hi,

    This is not correct am getting an Error and I would also like to redirect the user after Registration

    – make sure you write the code according to php standards

    Registration – there is no redirect after registration – you remain on the same form and just need to switch to login form and use your credentials : http://prntscr.com/w72f6y

    Thank you

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.