• Resolved boybawang

    (@boybawang)


    Hello –

    Is there a way to change the URL on the login page on the username where it says “Welcome, <username>”? By “Login Page”, I’m referring to the page with the shortcode [pmpro_login]. By default, the URL on the username points to the page containing the shortcode [pmpro_account]. I’d like to change the URL to point elsewhere. Is there a filter/hook that can accomplish this?

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Support Kim White

    (@kimwhite)

    Hello @boybawang,
    Thank you for using Paid Memberships Pro.

    After login, the user is sent to the Members Account page.

    You can change this with our Members Homepage Add On, or using a basic redirect function like this:
    https://gist.github.com/ipokkel/07a290443d19d1763ae956a20d0c58ac

    I hope this helps to get you started.

    Kim W

    Thread Starter boybawang

    (@boybawang)

    Hi Kim –

    Thanks for the suggestions. I don’t necessarily want to redirect members to a different page. All I want to do is change the URL that their username is pointing to once they’re logged on, as shown on this image.

    We would like the URL that is for “User” to point to a different URL. We don’t need any kind of redirect done based on their membership level. The URL on the User’s name would go to the same page, regardless of membership level. Does that make sense?

    • This reply was modified 2 years, 5 months ago by boybawang.
    • This reply was modified 2 years, 5 months ago by boybawang.
    Plugin Support Kim White

    (@kimwhite)

    Hello,

    Ok, I think I understand. If it’s the LOGIN link we create, it will go to the page assigned to be the LOGIN Page in your page settings.
    Memberships > Settings > Pages

    However, changing this to a page without the shortcode can break your password reset functionality.

    How are you adding the “Welcome, <username>”? link? Is this the Memberlite theme you are using?

    Kim W

    Thread Starter boybawang

    (@boybawang)

    Hi Kim –

    I understand that the page for the login link is specified under Memberships > Settings > Pages. I also made sure that the login page has the [pmpro_login] shortcode. That is all working fine.

    The link URL I’m talking about, is the URL that is on the username link in the image I showed you before. If the image looks a bit strange, it’s just because I masked the real username. That link’s URL is pointing to the membership account page. I want to change that URL (on the username) to point to a different URL instead of the membership account page. Does that make sense?

    Plugin Support Kim White

    (@kimwhite)

    Oh my. I’m sorry I forgot about your image.
    I understand now.

    There is no easy way to change this, however, you could hide it with CSS and add whatever you would like to link to a menu assigned to the “Log In Widget – PMPro”.

    You could also use the do_action( ‘pmpro_logged_in_welcome_before_menu’ ); to add text before this menu.

    I hope this helps you to get started. I’m sorry for the confusion.

    Kim W

    Thread Starter boybawang

    (@boybawang)

    ok, thanks @kimwhite

    Because there have not been any recent updates to this topic, we will be changing the status to resolved. If you have any new questions or if your issue persists, please feel free to create a new topic.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Changing URL on username on /login/ page’ is closed to new replies.