Home › Forums › Legacy Support › Support queries › How-to & Troubleshooting › Customize the course unit template
Tagged: Course Unit, customize
- This topic has 10 replies, 2 voices, and was last updated 8 years ago by H.K. Latiyan.
Viewing 11 posts - 1 through 11 (of 11 total)
-
AuthorPosts
-
October 22, 2016 at 11:03 pm #76119maximka11SpectatorHey guys. I'd like to customize the unit template. For example I'd like to change the position of the featured image of each course unit. Where can I find the course unit template?! I'm using the modern child. Thanks a lot!October 24, 2016 at 11:47 am #76256H.K. LatiyanParticipantBy default we never show featured image in course unit. Can you please share the screenshot where is the featured image shown ?October 24, 2016 at 12:06 pm #76269maximka11SpectatorI know that this is not the default feature. I've used your hack, described here: https://wplms.io/support/forums/topic/featured-image-in-unit/. But my questions is: where and how can I customize the unit-template? I've tried to edit the files "single-unit.php" - no changes. So I need your help. My particular need is to move the "feature image" above the title (above the $content) and place it between the header and course-meta:October 24, 2016 at 1:35 pm #76294H.K. LatiyanParticipantThis is the course status page and start.php file is loaded here (present in the theme). But there is no hook to add the image at the top of the page. It will come in the unit content only.October 24, 2016 at 1:37 pm #76296maximka11SpectatorBut can I move the featured image above the unit title? This should be possible, I guess. Thanks.October 25, 2016 at 9:29 am #76448maximka11SpectatorCan you please tell me how to customize the unit template? Which theme files are responsible for the units? Thank you.October 25, 2016 at 1:14 pm #76510H.K. LatiyanParticipantNo it will come in the content only on course status page. ----------- The single unit page comes from the single-unit.php file present in the wplms theme.October 25, 2016 at 1:38 pm #76523maximka11SpectatorThank you for your reply. Unfortunately I can't confirm this. When I delete ALL single-.php files (including single-unit.php) from the wplms theme folder -> there is NO effect, NO changes. Looks like the file start.php is responsible for loading the units. But still I have no chance to make some minor changes to the units template itself. So I'm pretty confused - you can't help me with that?! :((October 26, 2016 at 8:55 am #76668H.K. LatiyanParticipantStart.php file is loading the course status page and then the units are loaded on course status page only. But single.php file loads the single unit page (not in course status page). I asked for unit template i.e. single unit page and it is loaded from single-unit.php file only. Course status page (start.php) is completely different and its not related to unit template.October 26, 2016 at 8:58 am #76669maximka11SpectatorBut when I do changes to the file single-unit.php - there is no effect. So I can't modify the units design template. That's confusing.October 26, 2016 at 11:16 am #76683H.K. LatiyanParticipantI guess you are confusing with the single unit page and course status page. The single unit page looks like this: http://prntscr.com/cz4qb9 And course status page looks like this: http://prntscr.com/cz4qvp
-
AuthorPosts
Viewing 11 posts - 1 through 11 (of 11 total)
- The topic ‘Customize the course unit template’ is closed to new replies.