Changing vote language on Community topic page

回答済み

4 コメント

  • Vladan Jovic
    コメントアクション Permalink
    • 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)

     

    2
  • Susheela
    コメントアクション Permalink

    Thanks, Vladan! This works.

    0
  • Jennifer Rowe
    コメントアクション Permalink

    Nice, Vladin! thanks for helping out.

    0
  • Vladan Jovic
    コメントアクション Permalink

    Glad that this helps! Cheers

    0

ログインしてコメントを残してください。

Powered by Zendesk