Archived topic
Post navigation change tekst
3 replies · Started by Damiaan van Vliet on July 1, 2015
Hi support,
Is it possible to change the Next and Previous links beneath a post to actually the text Next post / Previous post? Now I see the title of the post.
I tried following code for functions.php (I have child theme) I found with Google but not working:
//
add_filter( 'tc_singular_nav_next_text' , 'my_nav_buttons_text' );
add_filter( 'tc_singular_nav_previous_text' , 'my_nav_buttons_text' );
function my_nav_buttons_text() {
switch ( current_filter() ) {
case 'tc_singular_nav_previous_text':
return 'previous post ←'; // <= your custom text here
case 'tc_singular_nav_next_text':
return '→ next post'; // <= your custom text here
}
}
Thanks!
You can overwrite our core function by adding this: https://gist.github.com/generatepress/bb5a62c2a94b94bedad0
That should do it :)
Adding PHP: http://generatepress.com/knowledgebase/adding-php-functions/
Great Tom! And you're so quick... Thanks a lot.
And... like you already supposed it works.
Greetings from the Netherlands.
Glad I could help! :)
