Count content views show in number with icon I have enabled Count content views in Statistics.


The bottom of article show "3 reads".

I checked the code, the code is &lt;span&gt;3 reads&lt;/span&gt;

Because the number and word is together, I can't change word "reads" to an "eye" icon.

How do I show the number with icon.



Below is the effect I want
Assuming you're using D7, you can implement hook_node_view() in your custom module and override statistics count text as per your requirement. Check example below:

/**
 * Implements hook_node_view().
 */
function [YOUR_MODULE_NAME]_node_view($node, $view_mode) {
  if ($view_mode != 'rss') {
    if (user_access('view post access counter')) {
      $statistics = statistics_get($node-&gt;nid);
      if ($statistics) {
        // Alter text as per your requirement below.
        $links['statistics_counter']['title'] = format_plural($statistics['totalcount'], '&lt;i class="icon"&gt;&lt;/i&gt;1 read', '&lt;i class="icon"&gt;&lt;/i&gt;@count reads');
        $node-&gt;content['links']['statistics'] = array(
          '#theme' =&gt; 'links__node__statistics',
          '#links' =&gt; $links,
          '#attributes' =&gt; array('class' =&gt; array('links', 'inline')),
        );
      }
    }
  }
}