Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I am trying to achieve 2 different things here theme the pager to get the proper markup output to the page and when the pager still shows the
Here is the markup I am trying to achieve:
<a href="node/" class="prev icon-arrow-line-left">Previous</a>
<a href="node/" class="next icon-arrow-line-right">Next</a>
I have to use the custom-pager.tpl.php to accomplish this but no luck yet.
As far as removing the li when empty - let me know if I can provide any other detail that will be helpful but I guess if I just dont wrap it remove it completely and I can go off the link class
thanks
Comments
Comment #1
naeluh CreditAttribution: naeluh commentedOk so I was able to answer my first question
I got this
Now if any one possible can tell how to hide the prev when its empty that would be great thanks !
Comment #2
ykyuen CreditAttribution: ykyuen commentedhow about this?