Info
- 9 posts
- 6 voices
- Started 2 years ago by wilcosky
- Latest reply from divengrabber
- This topic is not resolved
Pagination
-
- Posted 2 years ago #
Where is the pagination code?
This is being very picky, but, I want the current page number to be <b>bold</b>.
Could someone tell me where the code is so I can add bold tags around the current page OR can someone tell me the CSS code that I can add to my style sheet that will make the current page number bold?
Just from viewing the source of one of my view pages I found the following:
<span class="page-numbers current">1</span>So, I tried adding .page-numbers current {font-weight:bold;} to my style sheet, but that doesn't work.
-
- Posted 2 years ago #
That should work just fine. What you want to do can be done and should be done in the stylesheet, not with a modification to the bbPress core. Did you try in a different browser to make sure your old stylesheet was not cached or something? Can you post the URL so people can check it out?
-
- Posted 2 years ago #
it must be
.page-numbers .current {font-weight:bold;}otherwise "current" becomes and element and not a pseudo class ;)
-
- Posted 2 years ago #
Good eye Olaf. Thank you.
-
- Posted 2 years ago #
That didn't work for me. I event added !important to it and emptied my cache. :(
That's actually one of the things I tried last night. Anyone have any other ideas to make the following bold?
<span class="page-numbers current">1</span>If it helps, .page-numbers {font-weight:bold;}, works! But, it changes all the pagination links bold and not just the current page. So, you would think the .page-numbers .current code would work but it doesn't. I also tried .page-numbers #current and .page-numbers current
-
- Posted 2 years ago #
span .page-numbers .currentshould work -
- Posted 2 years ago #
.page-numbers.current- Don't use a space, it's not a descendant. -
- Posted 2 years ago #
Thanks guys, I'll try both of those tonight when I get home, I'm at work right now. It probably is the space. CSS can be sensitive. :)
I wish I wasn't so picky, then I wouldn't even be worrying about this.
-
- Posted 2 years ago #
u pplz r really helpful.
-
You must log in to post.