Skip to Content Skip to Menu

🎃 Happy Halloween! Treat yourself with an awesome discount on memberships! Get 20% off now with code SPOOKY-2024!

[SOLVED] Add css class to pagination

  • Geppie
  • Geppie
  • OFFLINE
  • Posts: 18
  • Thanks: 2
  • Karma: 2
11 years 4 months ago - 11 years 4 months ago #228974 by Geppie
[SOLVED] Add css class to pagination was created by Geppie
Hi all,

The pagination that is rendering don't have a specific class for styling.
They all called .pagenav or a.pagenav.

Is there a way to give them a specific class, like counting (.pagenav1, .pagenav2 etc) or something?

i found some php files named cb.pagination.php and comprofiler.html.php but don't know how to add a counter or something.

Looking forward for some help :)

Geppie
Last edit: 11 years 4 months ago by krileon.

Please Log in or Create an account to join the conversation.

  • krileon
  • krileon
  • ONLINE
  • Posts: 48464
  • Thanks: 8280
  • Karma: 1443
11 years 4 months ago - 11 years 4 months ago #228985 by krileon
Replied by krileon on topic Add css class to pagination

Is there a way to give them a specific class, like counting (.pagenav1, .pagenav2 etc) or something?

Nope, but you can use CSS3 to select a specific element counter. Example as follows.

Code:
.pagenav:nth-child(1) { color: red; } .pagenav:nth-child(2) { color: blue; } .pagenav:nth-child(3) { color: green; }

You can find more information on the nth-child selector below.

www.w3schools.com/cssref/sel_nth-child.asp

i found some php files named cb.pagination.php and comprofiler.html.php but don't know how to add a counter or something.

We don't support core edits so I can't help you with editing it in.


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
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 CST to 4:00 PM CST. 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.
Last edit: 11 years 4 months ago by krileon.

Please Log in or Create an account to join the conversation.

  • Geppie
  • Geppie
  • OFFLINE
  • Posts: 18
  • Thanks: 2
  • Karma: 2
11 years 4 months ago #229007 by Geppie
Replied by Geppie on topic Add css class to pagination
Hi Krileon,

Yhank you for the push in the right direction. Will try your css solution.
Just bought the CB package and i really like it :)
Keep up the good work..!

Geppie
The following user(s) said Thank You: krileon

Please Log in or Create an account to join the conversation.

Moderators: beatnantkrileon
Powered by Kunena Forum