This lesson will show you the basics of Sensei’s templating system, how it is structured, and how to integrate it with your themes.
As with the WooCommerce plugin, the template files are located in the /templates/ folder in the root of the plugin. Inside this folder you will find the files that you will need in order to customize your theme.
Integrating and making changes to Sensei in your theme is very easy. Out of the box Sensei will work with your theme, however should you wish to make changes to the markup or the structure of a Course, Lesson, etc, all you need to do is make a folder called /sensei/ in your theme root. Then simply copy the files and folder over from the plugins /templates/ folder. Then you can make your changes and the plugin will load the files from the theme first.
Sensei has some standard hooks that are available for use:
sensei_before_main_content() – this runs before the loop
sensei_after_main_content() – this runs after the loop
sensei_pagination() – this runs after main content
sensei_comments() – this only runs on the lesson single page
sensei_sidebar() – this runs on every single/archive sensei page