-
Author
-
January 30, 2019 at 00:07 #217556pandreas82Participant
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
January 30, 2019 at 19:33 #217638LauraModeratorHello, 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 solutionLaura 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 🙂
January 30, 2019 at 21:40 #217653pandreas82ParticipantThank 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 CODEif (!is_homepage) { custom_redirect_from_kleo_interface(); }
So, how I will make this code hack?
Thank you again!
Andreas
January 31, 2019 at 22:02 #217724LauraModeratorHello, 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 solutionLaura 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 🙂
February 1, 2019 at 17:11 #217798RaduModeratorHi,
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
RHi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution -
AuthorPosts
You must be logged in to reply to this topic.