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
Remove / Replace Co...
 
Notifications
Clear all

Remove / Replace Comment Text Field

2 Posts
2 Users
0 Reactions
5,853 Views
Posts: 1
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
(@raysnalley)
New Member
Joined: 5 years ago
[#1607]

Is it possible to remove the comment text field?

For my Wordpress site, each blog post represents an Employment Opportunity. The post's Comments are meant to represent an applicant's candidacy. In addition, upvotes and downvotes would indicate other users support for or against the "commenter's" candidacy. 

So ideally, the comment form would only consist of a button named "Submit Candidacy". 

The resulting comment would simply display the commenter's Name which links to their profile.

Is this possible?

If not, another approach might be to pre-populate the comment text field with something like "I submit my candidacy." And have this field be read only.

Perhaps if neither of these are possible, any recommendations would be greatly appreciated (alternative workarounds using this plugin, or recommendations for another plugin).

thanks!


1 Reply
Asti
Posts: 8215
 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

@raysnalley,

The second way is possible. 

Please follow the steps below:

1. Go to Dashboard > wpDiscuz > Settings > Comment Form Settings admin page and disable the Load Rich Editor option. More info here: https://wpdiscuz.com/docs/wpdiscuz-7/plugin-settings/comment-form/#load-rich-editor

2. On the same page change the value of the "Comment Form View" option from "collapsed" to "expanded"

3. Use the following js code: 

jQuery(document).ready(function(){
jQuery("#wpdcom .wpd-form .wpdiscuz-textarea-wrap.wpd-txt .wpd-textarea-wrap textarea").text('I submit my candidacy.');
jQuery("#wpdcom .wpd-form .wpdiscuz-textarea-wrap.wpd-txt .wpd-textarea-wrap textarea").prop("readonly",true);
});

Use the methods provided in this article: https://www.collectiveray.com/add-javascript-to-wordpress


Reply
Share: