0

I have a situation where I need to remove (via client request) the letter count in the header of a view based on Glossary view. How might I remove the numbers (in parenthesis)

enter image description here

Previous question history: Paginate views by first letter of Node title

3 Answers 3

1

Copy views-view-summary-unformatted.tpl.php to your theme and edit the file and remove line 17 (<?php print $row->count; ?>)

or wrap line 17 (<?php print $row->count; ?>) with a span and hide it using css

<span>(<?php print $row->count; ?>)</span>
0
5
  • Go to the Attachment details of the Glossary view
  • Under Contextual Filters (you may need to click Advanced to see it) click on "Content: Title"
  • Uncheck "Display record count with link"
0

Since I can't comment, I have to add an answer. I agree with Bill's answer. This also works for Drupal 8 and no code change is required. De-selecting "Display record count with link" will remove the parenthesis.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.