Created
August 10, 2018 14:17
-
-
Save Nikschavan/577328e8602ba737cb13d1cca82704b5 to your computer and use it in GitHub Desktop.
Astra - Post title instead of next previous arrows
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
<?php // don't copy this line in your code. | |
function your_prefix_next_previous_post_titles() { | |
return array( | |
'next_text' => get_the_title( get_next_post() ) . ' <span class="ast-right-arrow">→</span>', | |
'prev_text' => '<span class="ast-left-arrow">←</span> ' . get_the_title( get_previous_post() ), | |
); | |
} | |
add_filter( 'astra_single_post_navigation', 'your_prefix_next_previous_post_titles' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment