Make CoursePress course title and unit title the Page Title

How can I make the course unit's web page title the "Unit Title?"

Can you make this default in a plugin update?

  • Michael Bissett

    Hey @BGF, hope you're doing well this evening! :slight_smile:

    Are you using the CoursePress theme on your site, or are you using a different one?

    If you're using the CoursePress theme, you can create a child theme, and after copying the single-unit.php template to the child theme, you can replace the code on line 29:

    <h3 class="entry-title"><?php echo do_shortcode('[course_title course_id="' . $course_id . '"]'); ?></h3>

    With this:

    <h3 class="entry-title"><?php the_title(); ?></h3>

    Could you let me know if that works for you please? :slight_smile:

    Also, in regards to making the default behavior, I can make that into a feature request for you, I've gone ahead and moved this thread over to the Features and Feedback section. :slight_smile:

    Kind Regards,

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.