WP Courseware custom post templates
WP Courseware just got better!
Now you have the ability to create custom templates for your course units.
12 Comments
Leave a Comment
Would you like to test drive WP Courseware for Free?
No credit card required
Hi,
I am a client and I would like to get a copy of single-unit.php file that you are displaying in this youtube video above. I need to get the template to get rid of the side bar.
Also can you tell me if there is a way to upload the .php file without a FTP sofware?
Thank you in advance
We recommend using the single.php that came with your theme as a base. Then you can simply remove the code that displays the sidebar. Just don’t forget to change the header.
This is a great feature! Is there anywhere on the internet where people have posted a repository of custom made templates to share? It’d be really cool if there was something like that. Similar to how people share Divi layouts.
Thank you for your kind words Anthony. I really wish there was a way for us to standardize the templates, but the reality is that there are thousands of themes, each being different. Currently there isn’t a repository of templates however, it’s a pretty cool idea. Perhaps we will consider something like this. Anyone else interested in a repository of templates?
Yes! Repository would be cool.
Yes… Repository will be great. Not just that, have your own market place where WordPress programmers like me will be able to showcase/sell the themes utilizing WP Courseware plugin. This will also offer a good start-point for those who wish to start their own E-Learning venture using WP Courseware.
Hi Ruturaaj,
Do you customise WP Courseware templates? I’d love to find out more because I need that for my website.
Thanks
Luke
Hi Luke,
Yes, currently there are ways to customize templates for certain WP Courseware elements. At some point we will have templates for all content, but for now it’s a work in progress. Here is an article I create on how to create and/or customize templates for WP Courseware.
Is there any way to create a template that is used as the default for all units? I would prefer to not have to choose a template from within the unit page editor for every single unit.
Also when using Elementor which now has a fairly extensive theme builder, one can create and assign a single post template to “courses” (which works, but only when the course is free otherwise wp content is hidden) but we can’t define a single Elementor template for units (Courses show up in the list of post-type conditions but not Units, even tried “child of courses” but doesn’t work either)
This forces us to scrape the Elementor template html and manually create a template loop from it and then for each unit we have to go back in and edit each one to change the template to our custom one. When there are many courses w/ many units, this is a lot of work.
If not, no worries, I’ll probably figure out a way to do a find/replace in the db meta for all units but they are likely serialized adding even more fun to the task.
Glad you guys keep polishing this up and adding more functionality. Thanks for considering our ideas that help us be more efficient.
Hey Philip,
Yes, you can certainly create a template for all units. The best way to do this is simply copy the theme’s single.php file and then rename it to single-wpcw_unit.php. Then you can modify the unit template and it will automatically apply to all units without having to configure each one in particular.
Hi Ben,
I wanted to customize the courses.php template, but after editing it, i uploaded to themes/DIvi/wp-courseware/courses.php, it does not reflect my changes. I need to know what did i do wrong?
please advise.
thks
Hi there,
Thank you for the question. If you are using Divi + child theme, make sure that you add the “wp-courseware” folder there instead. Also be aware that there are other templates for the archive page found in the /templates/course/ folder.