This topic has 5 replies, 3 voices, and was last updated 9 years by cutestbooty.

  • Author
  • #30155
     macamacaron
    Participant

    Hello SeventhQueen,

    I have a question. How to redirect after log-in directly to members page – with all the photos thumbnails ?

    And what should I do to stop the redirect to landing page, when I click the logo on the left (after logged in).

    Thank you very much.

    Francis

    #31082
     Catalin
    Moderator

    Hello,

    For redirecting users to a certain page after login, you can use this plugin:

    https://wordpress.org/plugins/peters-login-redirect/

    and for the second question, the file you need to modify is:

    ..\wp-content\themes\sweetdate\header.php

    the lines where the link to homepage is added are those:

    COPY CODE
    
    
                        <?php if(is_user_logged_in() ) : ?>
                            <h1 id="logo"><?php bloginfo('name'); ?>
                               <img />" width="294" height="108" alt="<?php bloginfo('name'); ?>">
                            </h1>
                        <?php else : ?>
                            <h1 id="logo"><?php bloginfo('name'); ?>
                                <a>"><img />" width="294" height="108" alt="<?php bloginfo('name'); ?>"></a>
                            </h1>
                        <?php endif; ?>
    
    
    

    you will need to copy the header.php file to your child theme folder and modify the code accordingly… with what other option you want to change the logo behavior to?

    Thank you,
    Catalin

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    #31083
     macamacaron
    Participant

    @Catalin

    Thank you !

    Have you guys found the solution for all members’ age of 44 ??

    Cheers

    #33326
     cutestbooty
    Participant

    Hi Caitlin,

    I’ve tried using Peter’s Redirect on the Sweetdate child theme, but it’s not working.

    I created a test account on my site but it doesn’t redirect to the user’s profile page, unless I create a user specific rule in Peter’s Redirect.

    When I try specifying the class rule for subscribers ( [variable]username[/variable] ) it doesn’t work.

    Any idea on what I might be doing wrong?

    Cheers

    #33347
     cutestbooty
    Participant

    Just to add to my previous post – it looks like Paid Memberships Pro might be the problem. After logging in, users are taken to this:

    http://website.com/membership-account/membership-levels/

    when I want them to be taken to this instead:

    http://website.com/members/membername/

    Any ideas on how to fix this?

    NOTE: I’ve also tried inserting the code into sweetdate-child/functions.php as you’ve suggested in other post. It also didn’t work.

    Cheers

    #33880
     cutestbooty
    Participant

    To anyone else interested, I disabled Paid Memberships Pro and inserted the code I found here:

    https://archived.seventhqueen.com/forums/topic/redirect-user-to-their-profile-after-login

    If anyone knows how to fix this issue with Paid Memberships Pro activated, I’d love to hear the answer!

Viewing 6 posts - 1 through 6 (of 6 total)

The topic ‘After Log-in redirect to Member's page’ is closed to new replies.

Log in with your credentials

Forgot your details?