typecho theme pageNav paging problem

WBOY
Release: 2016-08-04 09:22:14
Original
2120 people have browsed it

I want to add apage-numberclass 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' )); ?> 
Copy after login
Copy after login

typecho theme pageNav paging problem

As shown in the picture above, now I only know how to add apage-numberattribute 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!

typecho theme pageNav paging problem

Reply content:

I want to add apage-numberclass 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' )); ?> 
Copy after login
Copy after login

typecho theme pageNav paging problem

As shown in the picture above, now I only know how to add apage-numberattribute 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!

typecho theme pageNav paging problem

Actually, it can be done in CSS

.page-nav a:not([class~="extend"]) { /* 数字的样式 */ }
Copy after login
Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!