Notifications
Clear all

How to add a login button?

2 Posts
2 Users
0 Likes
2,345 Views
(@leo-spalteholz)
Active Member
Joined: 7 years ago
Posts: 19
Topic starter  

With native WP commenting I just added a "wp_loginout();" to the top of the comments form to get the link to login/logout.   However it seems that wpDiscuz replaces the whole comments.php, so this no longer works.  

Problem is, wpDiscuz has an option to show the logged in user at the top, but no option to show a login link.   So how can I get a login link back above the comment form (or in the comment form)?   


   
Quote
 Tom
(@tomson)
Famed Member Admin
Joined: 9 years ago
Posts: 4172
 

If you disable Gust Commenting it'll automatically show the login link. You can disable Guest commenting in Dashboard > Comments > Forms > Default Form admin page.

If you don't wan to disable this you should use comment form hooks to add a new content. For example:

More info:

  • comment_form_before
  • comment_form_top

http://wpengineer.com/2205/comment-form-hooks-visualized/


   
ReplyQuote
Share:
Scroll to top