Broken login link
-
You can overwrite this string in the comments template, or try to target just the link using the functions file in your theme.
However, before that – aren’t you using a Membership plugin to register users for your lessons ?? Or are they all free ?
All are free, I’m just looking for a way to let users comment at the moment 🙂
Thanks for the help, would you be able to give me some advice on how I can edit the comments template for success?
I really appreciate your help 🙂
The URL for this string is outline here, in the must_log_in :
It would be prefered to just add a filter for this URL, and put it in your functions file, but I’m not too sure how to do that.
You could :
– copy the comments.php file into your child theme
– manually overwrite the array :
‘must_log_in’ => ‘<p>’ . sprintf( _x( ‘You must be <a%s>logged in to post a comment.’, ‘Please, keep the HTML tags.’, ‘fl-automator’ ), ‘ href=”‘ . esc_url( home_url( ‘/wp-login.php’ ) ) . ‘?redirect_to=’ . urlencode( get_permalink() ) . ‘”‘ ) . ‘</p>’,Most membership plugins take care of dong this the right way for you.
Which I why I asked earlier if it is all free content or not.
Even if it is free, I would still recommend collecting email addresses or something as marketing. People put very little value in free!Thank you. Maybe I am going to too much trouble when I don’t need to.
I’ll definitely get thinking of ways to collect email addresses 🙂 but in the mean time, is there a way that I can set up comments so that users don’t have to login to comment, but just need to add their email and name?
That’s all that I want really at the moment, or is setting up user registration the only way to allow this? If so, do you recommend getting a user registration app?
Thanks a ton for your ongoing help 🙂
I would recommend using Ultimate Member simply from a marketing and scale perspective.
Have some free and open content, and have content that is still free – but the cost is an email address.Here is a doc that covers the comments :
https://mhthemes.com/support/knb/understanding-comments-in-wordpress/#enable-commentsProblem solved!
Thank you so much for your help 🙂
The topic ‘Broken login link’ is closed to new replies.
(@samolvo)
5 years, 7 months ago
Hi there,
I want to allow users to login to my website so that they can comment. I have created sign up and login forms but am struggling to get the links to those pages to replace the old login links which just lead to an error page.
The problem is that I can’t find any way that I can replace the login link in the comments section. I’ve tried 301 redirects and they don’t seem to work either.
Any help with how I can change this link would be greatly appreciated.
Cheers, Sam
The page I need help with: [log in to see the link]