Changing vote language on Community topic page
回答済みWe're trying to change the word Vote(s) on the Community topic page to Agree(s). We would also maybe need to change the word in the Sort dropdown as well.
Does anyone know if there's a way to do either or both of these things? Thanks!
-
- In design editor find Community post list page
- on the very bottom of this page, paste this code
<script>
$('.striped-list-item').each(function() {
votes = $(this).find('.votes-numb .striped-list-number');
if ($(votes).text() == "1") {
$(this).find('.agrees').text('agree');
};
});
</script>- find {{t 'vote' count=vote_sum}}
- replace it with this code
<span class="agrees">agrees</span>
- find this row
<span class="striped-list-count-item">
- and replace it with the code
<span class="striped-list-count-item votes-numb">
- you should get
(tested on Copenhagen theme)
-
Thanks, Vladan! This works.
-
Nice, Vladin! thanks for helping out.
-
Glad that this helps! Cheers
サインインしてコメントを残してください。
4 コメント