Customize pagination

7 months 6 days ago #315100 by HHZV_Plons
The default pagination of a list contains the HTML-characters «, &lsaquo, &rsaquo and ». I don't like these characters and I would like to change them into icons. I have found the file in which the characters are used, it's: \libraries\CBLib\CB\Legacy\cbPageNav.php

I tried to override this library file by creating the exact same folders and subfolders in my template's html folder, but that didn't work. How can I override these HTML-characters and change them?
7 months 5 days ago #315107 by krileon
Override them using CSS. Do not modify core code as you will lose your changes on every update. For example next links have the cbPageNavNext CSS class on their container and cbPageNavLink CSS class on the link it self. The below for example changes the next character to a fontawesome icon.

.cbPageNavNext .cbPageNavLink {
	font-size: 0 !important;

.cbPageNavNext .cbPageNavLink:after {
	display: inline-block;
	font-family: FontAwesome !important;
	font-size: initial;
	content: "\f105";

Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Templates - CBSubs - Hosting - Forge - Incubator - GroupJive
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
Please note I am available Monday - Friday from 8:00 AM EST to 4:00 PM EST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.
The following user(s) said Thank You: nant, HHZV_Plons
6 months 4 weeks ago #315182 by rohitagrwal
use css for that
5 months 2 weeks ago #315898 by HHZV_Plons
Thank you! This solved my problem
Moderators: beatnantkrileon
Time to create page: 0.406 seconds

Facebook Twitter LinkedIn