How to style the "Next", "Previous", "First" and "Last" buttons only ?

How to style the "Next", "Previous", "First" and "Last" buttons only ?

liranfliranf Posts: 9Questions: 6Answers: 0

I want to have icons instead of the words: "Next", "Previous", "First" and "Last", but to keep the numbers in between.
I found a similar question that suggested this:
"oLanguage": {
"oPaginate": {
"sNext": "Next"
}
}
but this affects the numbers also.
How can I accomplish styling only the "Next", "Previous", "First" and "Last" buttons ?

This question has an accepted answers - jump to answer

Answers

  • allanallan Posts: 63,682Questions: 1Answers: 10,498 Site admin
    edited February 2015 Answer ✓

    Use the language options - specifically language.paginate.next etc. With that you could insert HTML such as <i class="icon back"/> or whatever HTML your icons need.

    Allan

  • liranfliranf Posts: 9Questions: 6Answers: 0

    Works great. 10X :-)

This discussion has been closed.