wpDiscuz - WordPress Comment Plugin
Share:
Notifications
Clear all

[Solved] About the default display of nicknames

3 Posts
2 Users
0 Likes
325 Views
sostenuto0606work1
Posts: 7
Topic starter
(@sostenuto0606work1)
Active Member
Joined: 6 months ago

Hello

 

Is there a hook that sets some value by default in the nickname part of the image below?

 

https://gyazo.com/2292f36f8c9e0176445e865c8607a64f

2 Replies
Asti
Posts: 5091
 Asti
Support
(@asti)
Illustrious Member
Joined: 5 years ago

@sostenuto0606work1,

You can use the JS code below

jQuery( document ).ready(function() {
   jQuery("input[id^=wc_name]").val('Default Value');
});

The red marked value should be changed as you like. 

This article should be helpful for you: https://webdesign.tutsplus.com/tutorials/how-to-add-custom-javascript-to-your-wordpress-site--cms-34368

sostenuto0606work1
Posts: 7
Topic starter
(@sostenuto0606work1)
Active Member
Joined: 6 months ago

solved.

thank you.

Share: