Created
May 10, 2018 18:30
-
-
Save SteveJonesDev/24bbd861fa3033e325929ea6f89d4328 to your computer and use it in GitHub Desktop.
Add class to links generated by next_posts_link and previous_posts_link
This file contains 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
add_filter('next_posts_link_attributes', 'posts_link_attributes'); | |
add_filter('previous_posts_link_attributes', 'posts_link_attributes'); | |
function posts_link_attributes() { | |
return 'class="button"'; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment