Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //create a file navigation.php
- ni navigation.pho add this code
- <?php previous_posts_link( '<span class="meta-nav">←</span> Previous', 0 ); ?>
- <?php next_posts_link( 'Next <span class="meta-nav">→</span>', 0 ); ?>
- //then for add css class to a
- //add this code in functions.php
- //add nav a css class
- add_filter('next_posts_link_attributes', 'posts_link_attributes_1');
- add_filter('previous_posts_link_attributes', 'posts_link_attributes_2');
- function posts_link_attributes_1() {
- return 'class="next_navigation"';
- }
- function posts_link_attributes_2() {
- return 'class="previous_navigation"';
- }
- //change just class name
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement