Title: Template Customisation Issue
Last modified: February 7, 2022

---

# Template Customisation Issue

 *  Resolved [konigrot](https://wordpress.org/support/users/konigrot/)
 * (@konigrot)
 * [4 years, 4 months ago](https://wordpress.org/support/topic/template-customisation-issue/)
 * Hi there! Following the documentation, I have copied the ‘single-lesson.php’ 
   file from the sensei plugin directory, into the active theme /sensei/ subfolder
   to start customising it. However, before any changes have been made (the file
   has been copied into /sensei/ but not edited) the html markup changes on the 
   individual lesson pages, like this (courtesy of diffchecker):
 * ‘<article class=”lesson post post-30096 type-lesson status-publish hentry module-
   module-1-leading-lasting-change-transformation-in-disruption-digital-vuca”>’ 
   is removed
    ‘<section class=”entry fix”>’ is removed ‘</section>’ closing section
   tag is removed ‘</article>’ closing article tag is removed
 * Why/how can this be happening? When the file override is happening from within
   the them /sensei/ folder, what is likely to be detecting such an override and
   changing the html as described?
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Ftemplate-customisation-issue%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 6 replies - 1 through 6 (of 6 total)

 *  [Peter Kiss (a11n)](https://wordpress.org/support/users/yscik8/)
 * (@yscik8)
 * [4 years, 4 months ago](https://wordpress.org/support/topic/template-customisation-issue/#post-15338013)
 * Hi there!
 * There is also a `content-lesson.php` template that contains that markup, it’s
   likely that Sensei is not loading that file but uses the theme’s content template.
 * Themes can also declare support for Sensei (`add_theme_support( 'sensei' );`),
   which stops it from loading its own templates via `Sensei_Unsupported_Themes`.
 *  Thread Starter [konigrot](https://wordpress.org/support/users/konigrot/)
 * (@konigrot)
 * [4 years, 4 months ago](https://wordpress.org/support/topic/template-customisation-issue/#post-15352633)
 * Not sure I understood your reply properly!
 * I have now added the theme support code to the functions file, but I still have
   the issue that copying the single-lesson.php file from the sensei plugin directory
   into the theme/sensei/ folder causes the html to change as described above.
 * I have copied the content-lesson.php file into the theme/sensei/ folder and that
   seems all fine, but it doesn’t sort the issue with single-lesson.php.
 * Why would copying this single-lesson.php file be causing this?
 *  [Peter Kiss (a11n)](https://wordpress.org/support/users/yscik8/)
 * (@yscik8)
 * [4 years, 3 months ago](https://wordpress.org/support/topic/template-customisation-issue/#post-15366477)
 * Hello,
 * apologies, I misunderstood the role of `content-lesson.php`, that’s only used
   for listing pages, not the single lesson page.
 * I’ve tried out what you are doing and the markup didn’t change for me, the template
   only affects the content. Are you sure you don’t have a `single-lesson.php` in
   the main theme folder, outside the `/sensei/` directory? That would explain why
   the theme’s singular template is being replaced.
 *  Thread Starter [konigrot](https://wordpress.org/support/users/konigrot/)
 * (@konigrot)
 * [4 years, 3 months ago](https://wordpress.org/support/topic/template-customisation-issue/#post-15367250)
 * The only files in the active child theme directory, outside the /sensei/ folder,
   with a similar name, are single.php and single-magazine.php.
 * Lmk if you need access to the site to diagnose.
 *  [Peter Kiss (a11n)](https://wordpress.org/support/users/yscik8/)
 * (@yscik8)
 * [4 years, 3 months ago](https://wordpress.org/support/topic/template-customisation-issue/#post-15376686)
 * Could you look for what template in your theme is providing the original markup?
   
   Should be something like `<article <?php post_class( ); ?>>`, but the ‘entry 
   fix’ class could be easy to find too.
 * If nothing works, you can also just add that markup to single-lesson or an other
   template yourself that’s being loaded.
 *  Plugin Support [Jay](https://wordpress.org/support/users/bluejay77/)
 * (@bluejay77)
 * [4 years, 3 months ago](https://wordpress.org/support/topic/template-customisation-issue/#post-15411519)
 * Hi there,
 * It has been more than one week since we have heard from you, so I’m marking this
   topic as resolved.
 * But if you have any further questions or need some more help, you’re welcome 
   to reply here or open another thread.

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘Template Customisation Issue’ is closed to new replies.

 * ![](https://ps.w.org/sensei-lms/assets/icon-128x128.gif?rev=2914239)
 * [Sensei LMS - Online Courses, Quizzes, & Learning](https://wordpress.org/plugins/sensei-lms/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/sensei-lms/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/sensei-lms/)
 * [Active Topics](https://wordpress.org/support/plugin/sensei-lms/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/sensei-lms/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/sensei-lms/reviews/)

 * 6 replies
 * 3 participants
 * Last reply from: [Jay](https://wordpress.org/support/users/bluejay77/)
 * Last activity: [4 years, 3 months ago](https://wordpress.org/support/topic/template-customisation-issue/#post-15411519)
 * Status: resolved