Notifications
Clear all

Limited Support

Our team is currently on holiday, so support will be limited during this period. Response times may be slower than usual, and some inquiries may be delayed. We appreciate your patience and understanding, and we’ll resume our usual support by the end of August.

 

How to add a login button?

2 Posts
2 Users
0 Reactions
2,937 Views
(@leo-spalteholz)
Active Member
Joined: 8 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: 10 years ago
Posts: 4233
 

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