The effects of alcohol on sustanon 250 leucine for – real weight loss & bodybuilding benefits?
Changing the upvote...
 
Share:
Notifications
Clear all

[Solved] Changing the upvote and downvote comment buttons?

3 Posts
2 Users
1 Reactions
1,378 Views
Posts: 3
Topic starter
(@marigold91)
Active Member
Joined: 4 years ago

Hi I have a question regarding the upvote/downvote buttons, they are currently set to + and - and I can't find a way of changing that - ideally I'd want them to say "helpful" and "unhelpful" instead. Tried changing it with css by changing the wpd-vote-up wpd_not_clicked to hidden and using the :after thing but it doesn't seem to be working (it hides it, can't change it).

 

thanks for help in advance, 

2 Replies
Asti
Posts: 7261
 Asti
Support
(@asti)
Illustrious Member
Joined: 7 years ago

Hi @marigold91,

1. You can use "Voting / Liking Buttons" option. More info here:  https://wpdiscuz.com/docs/wpdiscuz-7/plugin-settings/comment-thread-features/#voting-liking-buttons

2. Or below is provided an example you can use: 

add_filter("wpdiscuz_comment_list_args", function ($args) {
$args["voting_icons"] = ["<svg xmlns=' https://www.w3.org/2000/svg ' width='24' height='24' viewBox='0 0 24 24'><path d='M12 4.435c-1.989-5.399-12-4.597-12 3.568 0 4.068 3.06 9.481 12 14.997 8.94-5.516 12-10.929 12-14.997 0-8.118-10-8.999-12-3.568z'/></svg>", ""];
return $args;
});

This hook code should be put in the WordPress active theme functions.php file (more information how to add insert custom code):

Note: the code above is just an example. If you're not familiar with coding we don't recommend you change anything.

1 Reply
(@marigold91)
Joined: 4 years ago

Active Member
Posts: 3

@asti thank you, that helps!

Share: