How do I choose a different template?

I can't find how to set the template for the unit display. I want the course to be "Page Full Width" rather than the "sidebar-left" so how do I make that change?


  • Sajid

    Hi @brian_becker

    Hope you are doing good today :slight_smile:

    CoursePress looks for single-unit.php template first in your active theme directory, if it does not exists then loads page.php template according WordPress template hierarchy.

    If you don't have single-unit.php file then you can create one. We have also distributed a sample theme with all these templates that you can use as a base to create your own. In this particular case go to wp-content/plugins/coursepress/themes/coursepress copy single-unit.php and move it to your current theme. To remove sidebar from units page open up this file, find the below code at the end and remove it.
    <?php get_sidebar('footer'); ?>

    Hope that helps :slight_smile: or feel free to post a reply if you need further assistance.

    Cheers, Sajid

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.