View previous topic :: View next topic |
Author |
Message |
thiebo Smarty Pro
Joined: 16 Jan 2005 Posts: 144 Location: Paris
|
Posted: Sat Apr 11, 2015 3:09 pm Post subject: smartyPaginate - styling active page |
|
|
Hello,
Using smartyPaginate, works like a charm. Just one little problem...
I could style the links of the pagination results, since the plugin returns <a href class="page">...blablabla.
But I would like to apply css to the active page. The plugin doesn't return any html code to which I could apply css.
This is the source code of my page now :
Code: | <span class="pages_resultats"> 1 <a class="page" href="cherchevoca.php?table=latin&lettre=i&next=6"> 2 </a></span> |
<a class="page" ...> is the output of the smartyPaginate plugin. But how can I apply a style to the letter 1 that is standing there all alone... ?
I hope my question is clear,
Many thanks is advance,
Thiebo |
|
Back to top |
|
thiebo Smarty Pro
Joined: 16 Jan 2005 Posts: 144 Location: Paris
|
Posted: Sun Apr 12, 2015 2:25 pm Post subject: |
|
|
Hi there,
My question isn't clear ? Or inappropriate .. ?
Thanks,
Thiebo |
|
Back to top |
|
AnrDaemon Administrator
Joined: 03 Dec 2012 Posts: 1785
|
Posted: Sun Apr 12, 2015 6:16 pm Post subject: |
|
|
Your question has been asken on saturday.
Which is a blessed holiday in many countries, and a rightful vacation day in even more.
Have patience. If someone know your answer, they will reply. In the meantime, I suggest to go back to reading plugin documentation at http://www.phpinsider.com/php/code/SmartyPaginate/ |
|
Back to top |
|
thiebo Smarty Pro
Joined: 16 Jan 2005 Posts: 144 Location: Paris
|
Posted: Mon Apr 13, 2015 4:15 pm Post subject: |
|
|
You're absolutely right. And by the way, I was taking a good nap myself after asking that question.
I've re-read the documentation, but the answer wasn't there.
|
|
Back to top |
|
mohrt Administrator
Joined: 16 Apr 2003 Posts: 7368 Location: Lincoln Nebraska, USA
|
Posted: Tue Apr 14, 2015 1:36 am Post subject: |
|
|
That plugin has not been updated in just over a decade
You could add the classes directly to the plugins, or another option, wrap the plugins with html classes you can find with CSS/JS. Example:
Code: | <span class="paginate_first">{paginate_first}</span> |
Then you can apply your css/js to elements inside this span. example, applying css to all links:
Code: | .paginate_first a { ... } |
jquery:
Code: | $(".paginate_first a").onclick( ... ); |
|
|
Back to top |
|
thiebo Smarty Pro
Joined: 16 Jan 2005 Posts: 144 Location: Paris
|
Posted: Wed Apr 15, 2015 6:00 am Post subject: |
|
|
just over a decade. Means it is really good. I've been using it for 6 or 8 years. Works fine
I have done what you describe, but than the gives a property to the link, not to the active page. I have found something for the active page, but that applies to the entirety of the results.
I guess that makes it a CSS problem
Thanks mohrt,
Thiebo |
|
Back to top |
|
AmbroseLee Smarty n00b
Joined: 06 Oct 2015 Posts: 1
|
Posted: Tue Oct 06, 2015 10:50 am Post subject: |
|
|
You Can Create styling active page in CSS :active Selector - W3Schools Its Possible
__________________
Thank You! |
|
Back to top |
|
|