How-to and Troubleshooting
3
Posts
2
Users
0
Reactions
514
Views
May 29, 2022 12:42 pm
Hi!
I would like to change the value for this element:
Now:
<div class="wpdiscuz-subscribe-form-button">
<input id="wpdiscuz_subscription_button" class="wpd-prim-button" type="submit" value="›" name="wpdiscuz_subscription_button">
</div>
New:
<div class="wpdiscuz-subscribe-form-button">
<input id="wpdiscuz_subscription_button" class="wpd-prim-button" type="submit" value="OK" name="wpdiscuz_subscription_button">
</div>
Please tell me which files need to be changed.
I don’t want to and can’t change using translation, since the current value is also used in other elements of the site.
2 Replies
May 30, 2022 7:51 am
You should use the jQuery code like this one:
jQuery(document).ready(function(){ jQuery('#wpdcom .wpdiscuz-subscribe-bar #wpdiscuz_subscription_button').val('ok'); });
This article should be helpful for you: https://www.collectiveray.com/add-javascript-to-wordpress