Created
April 30, 2014 17:44
-
-
Save ivandoric/11433556 to your computer and use it in GitHub Desktop.
wordpress: add class to prev/next posts links
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//NEXT/PREV BLOG PAGE LINKS | |
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 btn-gray"'; | |
} | |
function posts_link_attributes_2() { | |
return 'class="prev btn-gray"'; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment