sexycullen

215 w/ new pagination

Dec 19th, 2020 (edited)
137
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.22 KB | None | 0 0
  1. * CSS PART *
  2. this is to style the icons of next/previous,
  3. if you don't want to use them, then just go to the HTML part
  4.  
  5. search for .pagination, add this there too:
  6.  
  7. .pagination .sf {
  8. font-size:calc(var(--bodyFontSize) - 30%);
  9. color:var(--bodyLinkColor);
  10. vertical-align: middle;
  11. }
  12.  
  13. .pagination .sf:hover {
  14. color:var(--bodyLinkHoverColor);
  15. }
  16.  
  17.  
  18.  
  19.  
  20. * HTML PART *
  21. search for <div class="pagination">, then delete everything between {block:Pagination} and {/block:Pagination}
  22. and add this:
  23.  
  24. {block:PreviousPage}
  25. <a href="{PreviousPage}"> <span class="sf sf-chevron-left"></span> </a>
  26. {/block:PreviousPage}
  27. {CurrentPage} of {TotalPages}
  28. {block:JumpPage}
  29. <a class="jump_page" href="{URL}">{PageNumber}</a>
  30. {/block:JumpPage}
  31. {/block:JumpPagination}
  32. {block:NextPage}
  33. <a href="{NextPage}"> <span class="sf sf-chevron-right"></span> </a>
  34. {/block:NextPage}
  35.  
  36.  
  37. * IF YOU DON'T WANT ARROW ICONS *
  38. in <a href="{PreviousPage}"> <span class="sf sf-chevron-left"></span> </a>
  39. delete the span <span class="sf sf-chevron-left"></span> and just add previous or what you want
  40.  
  41. in <a href="{NextPage}"> <span class="sf sf-chevron-right"></span> </a>
  42. delete the span <span class="sf sf-chevron-right"></span> and add next
Add Comment
Please, Sign In to add comment