The effects of alcohol on sustanon 250 leucine for – real weight loss & bodybuilding benefits?
Search
Close
AI Search
Classic Search
 Search Phrase:
 Search Type:
Advanced search options
 Search in Forums:
 Search in date period:

 Sort Search Results by:

AI Assistant
Two comment forms i...
 
Notifications
Clear all

[Solved] Two comment forms in LearnDash

3 Posts
2 Users
0 Reactions
3,037 Views
(@k_brikmanis)
Posts: 2
New Member
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
 
[#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? 


 
Posted : 05/08/2022 9:53 pm
Asti
 Asti
(@asti)
Posts: 8267
Illustrious Member 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
 

@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.


In case you want to say thank you! 🙂
We'd really appreciate if you leave a good review on the plugin page.
This is the best way to say thank you to this project and the support team.

 
Posted : 06/08/2022 11:37 am
(@k_brikmanis)
Posts: 2
New Member
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
 

Thanks! This works 🙃 


 
Posted : 06/08/2022 11:43 am