alam7o alam7o - 4 months ago 7
CSS Question

how to make different style for page 2 in single.php

i want use different style fot other page in single.php or posts how to that this

i use this code for add page in single

<!--nextpage-->


If another method is to add another tab to post'm grateful for help
i want just add custom page to my post
like gallery for post
...

http://localhost/mysite/1024/postname/gallery/
http://localhost/mysite/1024/postname/page-2/
http://localhost/mysite/1024/postname/custom-page/


thanks

Lee Lee
Answer

If you look at your source code for the other pages (2, 3 etc), you will see there is a new classes added to the <body> tag called paged-2, paged-3 etc.

You can apply your own CSS styling based on these new classes, that will only affect those pages.

Comments