wpDiscuz - WordPress Comment Plugin
Is it possible to c...
 
Share:
Notifications
Clear all

Is it possible to customize wpdiscuz voting buttons (SVG)

3 Posts
2 Users
0 Likes
79 Views
claymes
Posts: 8
Topic starter
(@claymes)
Active Member
Joined: 2 years ago

Hi, is it possible to have own voting buttons in wpdiscuz? I mean totally different icons than those in the admin (+- / thumbs etc). Thanks.

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

@claymes,

Please read my answer here: https://wpdiscuz.com/community/general-forum/hope-to-add-settings-such-as-custom-voting-button-icon-and-reply-comment-icon/#post-14513

 

Reply
1 Reply
claymes
(@claymes)
Joined: 2 years ago

Active Member
Posts: 8

@asti thanks, could you, please, elaborate a bit more on the code you presented there?
How it would differ if you want to use it for more icons (+/-)? Thanks.

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;
});
Reply
Share: