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

  • Author
  • #217556
     pandreas82
    Participant

    Dear partners,

    I use the ‘Custom link redirect’ feature in order to redirect logged in users to ‘dashboard’ page.

    I would like so only if user visit the frontpage, for example, http://www.mysite.com and not another page like www.mysite.com/groups. We assume that the last page will require log in.

    It would be nice to have this chance.

    The reason is that my site sends notifications by email with links included. So, the email inform user about new article (welcome message etc, click on this link in order to check the post etc) with a direct link of the article.

    User clicks on the link of the email, he is asked for login details and then the site redirects you to http://www.mysite.com and http://www.mysite.com/groups as I was expected.

    Us there any solution for this, even with code hacking?

    Thank you in advance!

    Regards,

    Andreas

    #217638
     Laura
    Moderator

    Hello, right now there is not a feature like this, you can use peter’s login redirect but that is for a redirection when the user logs in, for what you are looking for ( that redirect to login when in home page ) there is not a function for this yet.

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

    Laura Solanes - Graphic Designer and Web Designer

    Please be patient as I try to answer each topic as fast as i can.

    If you like the theme or the support you've received please consider leaving us a review on Themeforest!

    Always happy to help you 🙂

    #217653
     pandreas82
    Participant

    Thank you for your reply!

    Could you please tell me where exactly in the code I will make any modification?

    The modification could be this:

    COPY CODE
    if (!is_homepage) {
    custom_redirect_from_kleo_interface();
    }

    So, how I will make this code hack?

    Thank you again!

    Andreas

    #217724
     Laura
    Moderator

    Hello, will assign the ticket to a higher support level who can help and advise you in your query.
    Thanks! ?

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

    Laura Solanes - Graphic Designer and Web Designer

    Please be patient as I try to answer each topic as fast as i can.

    If you like the theme or the support you've received please consider leaving us a review on Themeforest!

    Always happy to help you 🙂

    #217762
     pandreas82
    Participant

    Ok, thank you, I’ll be waiting..

    #217798
     Radu
    Moderator

    Hi,

    Tried to make a snippet to achieve what you need but not working at all not sure why, meanwhile i’ve found this on wp repository : https://ro.wordpress.org/plugins/redirect-to-login-if-not-logged-in/

    Also you can take a look here and try some of them : https://stackoverflow.com/questions/16738311/redirect-only-wordpress-homepage-with-a-301-redirect

    Cheers
    R

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
Viewing 6 posts - 1 through 6 (of 6 total)

You must be logged in to reply to this topic.

Log in with your credentials

Forgot your details?