I want to add apage-number
class attribute to all numbers in the paging, including the
theme code of the currentClass class as follows:
pageNav('Newer', 'Older', 1, '...', array('wrapTag' => 'nav', 'wrapClass' => 'page-nav', 'itemTag' => '', 'prevClass' => 'extend prev', 'nextClass' => 'extend next', 'currentClass' => 'page-number current' )); ?>
As shown in the picture above, now I only know how to add apage-number
attribute to currentClass, but I want to add this attribute to all numbers. I don’t know if there is a good way. I haven’t found it yet. I hope someone can do it. Please help me solve it, thank you!
I want to add apage-number
class attribute to all numbers in the paging, including the
theme code of the currentClass class as follows:
pageNav('Newer', 'Older', 1, '...', array('wrapTag' => 'nav', 'wrapClass' => 'page-nav', 'itemTag' => '', 'prevClass' => 'extend prev', 'nextClass' => 'extend next', 'currentClass' => 'page-number current' )); ?>
As shown in the picture above, now I only know how to add apage-number
attribute to currentClass, but I want to add this attribute to all numbers. I don’t know if there is a good way. I haven’t found it yet. I hope someone can do it. Please help me solve it, thank you!
Actually, it can be done in CSS
.page-nav a:not([class~="extend"]) { /* 数字的样式 */ }