jQuery:

<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.4.1/jquery.min.js"></script>

<script type="text/javascript">
  $(document).ready(function () {
    $(".rss-date").each(function () {
      var maxwidth = 10;
      if ($(this).text().length > maxwidth) {
        $(this).text($(this).text().substring(0, maxwidth))
      }
    });
  });
</script>




back to the article