• Resolved kees78

    (@kees78)


    Hi,

    Is it possible to alter the text displayed in the next – previous lesson on a lesson page?
    Right now, sensei displays the name of the lesson. However, i would like to display something similair to “next lesson” and “previous lesson”.

    So far i have:

    function override_button() {
    	$id = get_the_id();
        $text = sensei_get_prev_next_lessons($id);
    	if (is_sensei()){
    	$text['next']['name'] = 'Volgende les';
    	$text['previous']['name'] = 'Vorige les';
    	}
    return($text);
    }
Viewing 1 replies (of 1 total)
  • Hi @kees78 ,

    While we can’t provide support writing, testing, or troubleshooting custom code, for your use case we suggest using the Loco Translate plugin to alter text strings:

    https://www.ads-software.com/plugins/loco-translate/

    It lets you find a string and change it to say something else. It may sound strange to have to “translate” text into your own language, but it works. ??

    Best,
    Cena

Viewing 1 replies (of 1 total)
  • The topic ‘Change text next previous lesson button’ is closed to new replies.