The effects of alcohol on sustanon 250 leucine for – real weight loss & bodybuilding benefits?
AI Assistant
Two comment forms i...
 
Notifications
Clear all

[Solved] Two comment forms in LearnDash

3 Posts
2 Users
0 Reactions
3,171 Views
Posts: 2
Topic starter
Translate â–¼
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
(@k_brikmanis)
New Member
Joined: 4 years ago
[#4653]

There is two comment forms in LearnDash. This snippet does not work anymore:

add_filter('learndash_focus_mode_can_view_comments','__return_false');
add_filter('learndash_focus_mode_comments','__return_true');
add_action('learndash-focus-content-end',function(){
if(is_user_logged_in()){
comments_template();
}
});

Any sugestions? 


2 Replies
Asti
Posts: 8294
 Asti
Support
Translate â–¼
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
(@asti)
Illustrious Member
Joined: 8 years ago

@k_brikmanis,

The PHP code from the snippet plugin can be removed. It doesn't work from the versions higher than 4.3.0.

You can just use the CSS code below:

.learndash-wrapper .ld-focus-comments .comment-respond #reply-title, #commentform {
      display:none;
}

Put the code "Custom CSS Code" textarea, it's located in the Dashboard > wpDiscuz > Settings > Styles & Colors admin page.


Posts: 2
Topic starter
Translate â–¼
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
(@k_brikmanis)
New Member
Joined: 4 years ago

Thanks! This works 🙃Â