Development

How to Customize the Single Course Page Template

Customize the Tutor LMS course page without breaking updates: the hooks around the layout, adding a custom tab with tutor_course/single/nav_items, and when to override single-course.php.

Checked against the plugin source: Tutor LMS 4.1.3, Tutor LMS Pro 4.1.3

How to Customize the Single Course Page Template

The course page is where visitors decide to buy, so it is the page clients most want changed. Tutor LMS 4.1.3 renders it with single-course.php and a set of smaller templates, with hooks between them. Start with hooks; override only what you must.

The layout and its hooks

single-course.php builds the page in this order, firing these actions:

  • tutor_course/single/before/wrap: before everything.
  • The header (title, rating, instructor) and the video or thumbnail.
  • tutor_course/single/before/inner-wrap, then the tabs, then tutor_course/single/after/inner-wrap.
  • For each tab: tutor_course/single/tab/{key}/before and tutor_course/single/tab/{key}/after.
  • tutor_course/single/before/sidebar, the enroll box, instructors, requirements, tags and audience, then tutor_course/single/after/sidebar.
  • tutor_course/single/after/wrap: after everything.

Example: a trust block under the sidebar

add_action( 'tutor_course/single/after/sidebar', 'tle_course_trust_block' );

function tle_course_trust_block() {
	echo '<div class="tle-trust"><strong>30-day refund policy.</strong> Questions? <a href="/contact/">Ask us</a>.</div>';
}

Add a custom tab

The tabs come from tutor_utils()->course_nav_items() and pass through the tutor_course/single/nav_items filter (items, course ID). The default keys are info, reviews, questions and announcements. Each item has a title and a method: a function name that prints the tab content.

add_filter( 'tutor_course/single/nav_items', 'tle_add_syllabus_tab', 10, 2 );

function tle_add_syllabus_tab( $items, $course_id ) {
	if ( get_post_meta( $course_id, 'tle_syllabus', true ) ) {
		$items['syllabus'] = array(
			'title'  => __( 'Syllabus', 'tle' ),
			'method' => 'tle_render_syllabus_tab',
		);
	}
	return $items;
}

function tle_render_syllabus_tab() {
	echo wp_kses_post( wpautop( get_post_meta( get_the_ID(), 'tle_syllabus', true ) ) );
}

Use a plain function name for method. Visitors can open a tab directly with ?tab=syllabus. To hide a tab, unset( $items['reviews'] ) in the same filter.

Change the enroll box

The price and enroll button live in single/course/course-entry-box.php, with per-engine add-to-cart files in single/course/. Before overriding it, check the filters: get_tutor_course_price changes the price text, and is_course_purchasable controls whether the course can be bought. Overriding this file is fragile because it handles every engine and enrollment state.

Other quick changes

  • tutor_course_has_video (has video, course ID): show the thumbnail instead of the intro video.
  • Setting Course Content Access and the login requirement change who sees the page, not its layout.
  • Styling: target Tutor LMS classes from your child theme stylesheet rather than editing templates.

When to override single-course.php

Override the whole file only for a full redesign, for example a sales-page layout with your own sections. Copy it to your-child-theme/tutor/single-course.php, keep every do_action call, and keep the nav items loop so add-on tabs still appear. See how overrides work and the template map.

Check before you ship

  • View the page logged out, logged in but not enrolled, and enrolled.
  • Check free, paid and members-only courses.
  • Check on mobile, where the enroll box sits lower on the page.

Want a course page that converts? Our theme development team designs and builds them.

Save this practical guide

Add us as a preferred Google source, or ask an AI assistant to summarize this page and link back to the original guide when it is useful.

Vishavjeet
· Enterprise LMS Architect | WordPress & LMS Expert | WooCommerce | AI Automation

I’m Vishavjeet Choubey, an Enterprise LMS Architect with 10+ years of experience helping businesses, coaches, universities, and online academies build and scale powerful digital learning platforms. I specialize in enterprise LMS architecture, WordPress, WooCommerce, LifterLMS, LearnDash, Moodle, custom plugin development, and AI-driven automation. I build scalable LMS platforms, high-converting eCommerce solutions, and custom WordPress applications designed to improve user experiences, streamline operations, and drive measurable business growth. My approach combines deep WordPress and LMS engineering expertise with modern AI automation to reduce manual work, improve efficiency, and help organizations launch, scale, and grow faster.

Keep reading

Need a custom Tutor LMS solution?

Tell us what you are building or what is broken. A Tutor LMS developer reads every inquiry and replies with next steps and a free estimate.

Get a free Tutor LMS consultation

Tell us what you are building or fixing. A Tutor LMS developer replies with honest advice and next steps.

  • No obligation
  • Tutor LMS and Pro specialists
  • Your details stay private

This form is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.