• Resolved ginosec

    (@ginosec)


    Is there any way of changing the titles of lesson quizzes?
    My title for lesson 1 is “1. Introduction”, and the title of it’s quiz is “1. Introduction Quiz Quiz”. Similar issue for the other lessons.

    Is there any way to change the title?

Viewing 2 replies - 1 through 2 (of 2 total)
  • I would like this to know as well!

    Hello,

    The default behaviour for the quiz title is to take the lesson name and append “Quiz” to it. If you’d like to change it, you’d need to add some custom code using the Code Snippets plugin. After enabling the plugin, you can create a new snippet with the following code:

    
    add_filter( 'sensei_single_title', 'update_quiz_title', 10, 2 );
    
    function update_quiz_title( $title, $post_type ) {
      if ( 'quiz' === $post_type ) {
        $title = 'New Quiz Title'; // Change this to whatever you want.
      }
    
      return $title;
    }
    

    Note that this will change the quiz title to be the same for all quizzes. I don’t believe there’s a way to change it for just a specific quiz.

    Thx.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Quiz Title’ is closed to new replies.