Check comments.php template file and it should be in there somewhere
Yea, I did. I edited the html link it had set as , but that did not change it 🙁
set as: <a href="%s">
lol
You have edited the comments.php template and re-uploaded but the link is still reading the old URL?
Try adding some dummy text around that link somewhere (e.g <h1>test</h1>) just to ensure your changes are actually being made.
Also what is %s ?
If still in doubt post comments.php if poss
I have a comments.php and a comments-template.php
I have changed the url, but it still links to http://bbleaks.com/wp-login.php?redirect_to=
Here is the snippet of code from the comments-template.php file, look for ‘You Must Be Logged In’:
[Code moderated as per the Forum Rules. Please use the pastebin]
Anyone else have an idea? Please help 🙂
Here is the code:
'must_log_in' => '<p class="must-log-in">' . sprintf( __( 'You must be <a href="http://www.bbleaks.com/login">logged in</a> to post a comment.' ), wp_login_url( apply_filters( 'the_permalink', get_permalink( $post_id ) ) ) ) . '</p>',
The above code is what I changed, but it doesn’t seem to be affecting the comments section. Please help!
wp_login_url( apply_filters( 'the_permalink', get_permalink( $post_id ) ) ) ) . '</p>',
This function outputs the normal login URL so you don’t want to use this, instead you need to manually add your link where ever it is appearing.
(@bbleaks)
13 years, 4 months ago
Hey,
I am thinking about going back to using the original wordpress comments, if I can figure out a way to change the login link to redirect to the mingle login page. When you aren’t logged in it says ‘You must be logged in to comment’. Is there a way to change that link? I am trying to redirect my readers to a different login page.
Thanks!